Interface IValueConverter
Definition
Namespace: StardewUI.Framework.Converters
Assembly: StardewUI.dll
Provides a method to convert between arbitrary types.
Remarks
This is a non-generic version of the IValueConverter<TSource, TDestination> that should normally only be used by framework code. Avoid implementing this directly; instead prefer the generic version, which implicitly implements this interface.
Members
Properties
Name | Description |
---|---|
DestinationType | The type of object that this converts to; the result type of the Convert(Object) method. |
SourceType | The type of object this converts from; the value argument to the Convert(Object) method. |
Methods
Name | Description |
---|---|
Convert(Object) | Converts a value from the SourceType to the DestinationType. |
Details
Properties
DestinationType
The type of object that this converts to; the result type of the Convert(Object) method.
Property Value
SourceType
The type of object this converts from; the value
argument to the Convert(Object) method.
Property Value
Methods
Convert(Object)
Converts a value from the SourceType to the DestinationType.
Parameters
value
Object
The value to convert.
Returns
The converted value.