Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: bool Try(Type, object, out object)

Declaration

public static bool Try(
    Type toType,
    object value,
    out object result
)

Summary

Converts the specified object to the type toType. Returns true if successful, or false if the object cannot be converted exactly. result is set to null if the conversion is unsuccessful.