次の方法で共有


PexChoose.ValueNotNull<T>(String) Method

Definition

Gets a non-null value of a specified type.

public:
generic <typename T>
 where T : class static T ValueNotNull(System::String ^ name);
public static T ValueNotNull<T> (string name) where T : class;
static member ValueNotNull : string -> 'T (requires 'T : null)
Public Shared Function ValueNotNull(Of T As Class) (name As String) As T

Type Parameters

T

The value's type.

Parameters

name
String

The value's name.

Returns

T

Returns a non-null value of type T.

Applies to

See also