JSDate.As<T> method
Tries to create a T struct from this instance. It returns null
if the T struct cannot be created.
C#
public T? As<T>()
where T : struct, IJSValue<T>
parameter | description |
---|---|
T | A struct that implements IJSValue interface. |
Return Value
Nullable value that contains T struct if it was successfully created or null
if it was failed.
See Also
- interface IJSValue<TSelf>
- struct JSDate
- namespace Microsoft.JavaScript.NodeApi