ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ValueRef Class
ValueRef Methods
Create<T> Method

# ValueRefCreate T Method

Creates a ValueRefT instance with the given value.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    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

ValueRef T
A ValueRefT instance holding the given value.
See Also

#### Reference

ValueRef Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft