Grasshopper2.Types.Conversionnamespace
Types
Grasshopper2.Types.Conversion.BitsAndBytes
Provides conversion methods for bit and byte arrays to and from strings.
Grasshopper2.Types.Conversion.ConversionAction
A non-generic wrapper class around a ConversionDelegate<T, Q>.
Grasshopper2.Types.Conversion.ConversionAction<TSource, TTarget>
A wrapper class around a ConversionDelegate<T, Q>.
Grasshopper2.Types.Conversion.ConversionDelegate<TSource, TTarget>
Method signature for automatic type conversions. A valid conversion delegate *must* be decorated with a MeritAttribute and may be decorated with a ExplanationAttribute. If the conversion fails due to some reason, an exception must be thrown whose message explains the failure reason. Note that the ConversionRepository class has many helper methods for throwing these exceptions.
Grasshopper2.Types.Conversion.ConversionException
Exception type thrown by failed type conversions.
Grasshopper2.Types.Conversion.ConversionMessage
Represents a single conversion message.
Grasshopper2.Types.Conversion.ConversionRepository
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.
Grasshopper2.Types.Conversion.ConversionServer
This static class collects and maintains all conversion logic.
Grasshopper2.Types.Conversion.ExplanationAttribute
Optionally attach this attribute to all public static methods in a ConversionRepository class in order to provide more information about how a conversion is designed.
Grasshopper2.Types.Conversion.FormatProperties
Contains string formatting properties for various types of data.
Grasshopper2.Types.Conversion.HashFormat
Enumerates the possible formatting types of hashes.
Grasshopper2.Types.Conversion.MeritAttribute
Attach this attribute to all public static methods in a ConversionRepository class that ought to act as automatic type conversions.