PeanutButter
Loading...
Searching...
No Matches
PeanutButter.DuckTyping.AutoConversion.IConverter Interface Reference

Base interface for converters of all types. More...

Inheritance diagram for PeanutButter.DuckTyping.AutoConversion.IConverter:
PeanutButter.DuckTyping.AutoConversion.IConverter< T1, T2 >

Public Member Functions

bool CanConvert (Type t1, Type t2)
 Should return true when this converter can convert between t1 and t2.

Properties

bool IsInitialised [get]
 Should return true if the converter can be used later. For converters which rely on reflection, this is a double-check that the required underlying method has been located (which may not be the case in a trimmed executable)

Detailed Description

Base interface for converters of all types.

Member Function Documentation

◆ CanConvert()

bool PeanutButter.DuckTyping.AutoConversion.IConverter.CanConvert ( Type t1,
Type t2 )

Should return true when this converter can convert between t1 and t2.

Parameters
t1
t2
Returns

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