V8FastArgs.TryGet<T>(Int32, Nullable<T>) Method |
Gets a nullable value of the given underlying type from the argument at the specified index if possible.
Namespace: Microsoft.ClearScript.V8.FastProxyAssembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntaxpublic bool TryGet<T>(
int index,
out T? value
)
where T : struct, new()
Public Function TryGet(Of T As {Structure, New}) (
index As Integer,
<OutAttribute> ByRef value As T?
) As Boolean
public:
generic<typename T>
where T : value class, gcnew()
bool TryGet(
int index,
[OutAttribute] Nullable<T>% value
)
member TryGet :
index : int *
value : Nullable<'T> byref -> bool when 'T : struct, new()
Parameters
- index Int32
- The argument index.
- value Nullable<T>
- On return, a nullable value of underlying type T if the operation succeeded.
Type Parameters
- T
- The underlying type of the nullable value to get.
Return Value
BooleanTrue if the operation succeeded,
false otherwise.
See Also