NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.ToType

Retrieves the Type for a specified Object.

[Visual Basic]
Overridable Public Function ToType( _
   ByVal type As Type _
) As Object
[C#]
public virtual object ToType(
   Type type
);
[C++]
public: virtual Object* ToType(
   Type* type
);
[JScript]
public function ToType(
   type : Type
) : Object;

Parameters

type
The type.

Return Value

The type of the specified object.

Exceptions

Exception Type Condition
InvalidCastException is thrown if it doesn't return a type.

Remarks

The ToType method allows a means of reaching the Type class, which provides the functionality of several different services of the runtime, such as accessing the metadata and the Reflection.

See Also

Decimal Structure | Decimal Members | System Namespace