[This is preliminary documentation and is subject to change.]
Returns the value of an object as a particular type.
Declaration Syntax
C# |
public static T ValueOf<T>( Object obj )
Generic Template Parameters
- T
- The type to return.
Parameters
- obj (Object)
- The object value.
Return Value
The supplied object value cast to the type, or the default
value of the type if the object is null.