메소드 | 설명 | |
---|---|---|
CanConvertFrom ( |
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
|
|
CanConvertTo ( |
Gets a value indicating whether this converter can convert an object to the given destination type.
|
|
ConvertFrom ( |
Converts the given object to the type of this converter, using the specified culture information.
|
|
ConvertFromInvariantString ( string text, |
Converts the given string to the converter's native type using the invariant culture.
|
|
ConvertTo ( |
Converts the given value object to the specified type, using the specified culture information.
|
메소드 | 설명 | |
---|---|---|
GetConvertFromException ( object value ) : |
Gets a suitable exception to throw when a conversion cannot be performed.
|
|
GetConvertToException ( object value, |
Gets a suitable exception to throw when a conversion cannot be performed.
|
public CanConvertFrom ( |
||
sourceType |
/// A |
|
리턴 | bool |
public CanConvertTo ( |
||
destinationType | The destination type. | |
리턴 | bool |
public ConvertFrom ( |
||
culture |
/// The |
|
value | object | The |
propertyType | The property type that the converter will convert to. | |
리턴 | object |
public ConvertFromInvariantString ( string text, |
||
text | string | The value to convert from. |
propertyType | The type to convert from. | |
리턴 | object |
public ConvertTo ( |
||
culture |
/// A |
|
value | object | The |
destinationType |
/// The |
|
리턴 | object |
protected GetConvertFromException ( object value ) : |
||
value | object | The value to convert |
리턴 |
protected GetConvertToException ( object value, |
||
value | object | The value to convert |
destinationType | The destination type to convert to. | |
리턴 |