Creates a
ValueRefT instance with the given value.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax public static ValueRef<T> Create<T>(
T value = null
)
where T : struct, new()
Public Shared Function Create(Of T As {Structure, New}) (
Optional value As T = Nothing
) As ValueRef(Of T)
public:
generic<typename T>
where T : value class, gcnew()
static ValueRef<T>^ Create(
T value = nullptr
)
static member Create :
?value : 'T
(* Defaults:
let _value = defaultArg value null
*)
-> ValueRef<'T> when 'T : struct, new()
Parameters
- value T (Optional)
- The value to assign to the instance.
Type Parameters
- T
- The value type.
Return Value
ValueRefTA
ValueRefT instance holding the given value.
See Also