Click or drag to resize

ExtensionsConvertionsAs Method

Overload List
  NameDescription
Public methodStatic memberCode exampleAsT(Object)
Performs a cast between compatible reference types. If a convertion is not possible then null is returned. As a last resort it will use ChangeType(Object, Type).

Tries to use the implicit and explicit operators if exists when convertion with 'as' returns null.

Public methodStatic memberCode exampleAs(Object, Type)
Converts a type using the implicit or explicit operators. If both fails it will try to convert the value with ChangeType(Object, Type).
Public methodStatic memberCode exampleAs(Object, Type, Type)
Converts a type using the implicit or explicit operators. If both fails it will try to convert the value with ChangeType(Object, Type).
Top
See Also