ConversionRepository
ReferencesNothing matches.
Derive from this class to provide custom conversion methods. Add any number of public, static methods that adhere to the ConversionDelegate<TIn, TOut> signature, and which are decorated with the MeritAttribute attribute.
Fields
Methods
InfiniteConversion
#public static ConversionException InfiniteConversion(Type typeA, Type typeB, string nameA = null, string nameB = null)
Create the standard 'infinite conversion' exception, usually involving infinite values in the instance of typeA.
InvalidConversion
#public static ConversionException InvalidConversion(Type typeA, Type typeB, string nameA = null, string nameB = null)
Create the standard 'invalid conversion' exception, usually involving NaN or Unset values in the instance of typeA.
MissingConversion
#public static ConversionException MissingConversion(Type typeA, Type typeB, string nameA = null, string nameB = null)
Create the standard 'missing conversion' exception.