PeanutButter
Loading...
Searching...
No Matches
PeanutButter.DuckTyping.AutoConversion.ConverterLocator Class Reference

Locates converters for converting values from one type to another. More...

Static Public Member Functions

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.

Detailed Description

Locates converters for converting values from one type to another.

Member Function Documentation

◆ 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
type
toType
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
t1
t2
Returns

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.DuckTyping/AutoConversion/ConverterLocator.cs