PexChoose.ValueNotNull<T>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.