Locates converters for converting values from one type to another.
More...
|
static IConverter | TryFindConverter (Type t1, Type t2) |
| Attempts to locate a converter to convert between types t1 and t2.
|
static bool | HaveConverterFor (Type type, Type toType) |
| Determines if there is a converter to convert between the two provided types.
|
Locates converters for converting values from one type to another.
◆ HaveConverterFor()
bool PeanutButter.DuckTyping.AutoConversion.ConverterLocator.HaveConverterFor |
( |
Type | type, |
|
|
Type | toType ) |
|
static |
Determines if there is a converter to convert between the two provided types.
- Parameters
-
- Returns
◆ TryFindConverter()
IConverter PeanutButter.DuckTyping.AutoConversion.ConverterLocator.TryFindConverter |
( |
Type | t1, |
|
|
Type | t2 ) |
|
static |
Attempts to locate a converter to convert between types t1 and t2.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.DuckTyping/AutoConversion/ConverterLocator.cs