Converts instances of string to and from instances of Mouse
- Inheritance:
-
object
Value
Serializer object
Constructors
MouseWheelGestureValueSerializer()
Initializes an instance of the class.
Methods
CanConvertFromString(string, IValueSerializerContext)
Determines whether the specified string can be converted to an instance of the type that
the implementation of Value
Parameter | Type | Description |
---|---|---|
value | string | String to evaluate for conversion. |
context | IValue |
Context information that is used for conversion. |
Returns
- bool:
true
if the value can be converted; otherwise,false
.
CanConvertToString(object, IValueSerializerContext)
Determines whether the specified object can be converted into a string.
Parameter | Type | Description |
---|---|---|
value | object | The object to evaluate for conversion. |
context | IValue |
Context information that is used for conversion. |
Returns
ConvertFromString(string, IValueSerializerContext)
Converts a string to an instance of the type that the implementation of
Value
Parameter | Type | Description |
---|---|---|
value | string | The string to convert. |
context | IValue |
Context information that is used for conversion. |
Returns
- object:
A new instance of the type that the implementation of Value
Serializer supports based on the suppliedvalue
.
Exceptions
Type | Condition |
---|---|
Not |
|
ConvertToString(object, IValueSerializerContext)
Converts the specified object to a string.
Parameter | Type | Description |
---|---|---|
value | object | The object to convert into a string. |
context | IValue |
Context information that is used for conversion. |
Returns
- string:
A string representation of the specified object.
Exceptions
Type | Condition |
---|---|
Not |
|