The Gallio.Runtime.Conversions namespace contains types for converting
values from one type to another based on extensible conversion rules.
Classes
| Class | Description | |
|---|---|---|
| ArrayToArrayConversionRule |
Converts arrays from one-dimensional arrays of one element type to another.
| |
| BaseConverter |
An abstract base class implementation of IConverter
that mostly validates arguments and provides a default implement for
CanConvert(Type, Type) based on GetConversionCost(Type, Type).
| |
| Converter |
Service locator for IConverter.
| |
| ConvertibleToConvertibleConversionRule |
Converts values among IConvertible types.
| |
| CustomConversionRule |
Conversion rule for custom user conversions.
| |
| CustomConverters |
Extensibility point for object conversion managed by RuleBasedConverter.
| |
| NullConverter |
A null implementation of a converter that does not actually support
converting values.
| |
| ObjectToStringConversionRule | ||
| RuleBasedConverter |
A rule-based converter uses a set of IConversionRules to
perform conversions.
| |
| StringToEnumConversionRule |
Converts a text representation of a Enum to its corresponding value.
| |
| StringToXmlDocumentConversionRule |
Converts a String into an XmlDocument assuming
the string is valid xml.
| |
| XPathNavigableToXPathNavigatorConversionRule |
Converts IXPathNavigable objects to XPathNavigator objects.
| |
| XPathNavigatorToStringConversionRule |
Converts an XPathNavigator into a String by value or outer xml.
| |
| XPathNavigatorToXmlSerializableTypeConversionRule |
Converts XPathNavigator objects to XML serializable
objects that have the XmlTypeAttribute.
|
Structures
| Structure | Description | |
|---|---|---|
| ConversionCost |
Describes the relative cost of performing a conversion so that different
conversions can be ranked by cost.
|
Interfaces
| Interface | Description | |
|---|---|---|
| IConversionRule |
A conversion rule encapsulates an algorithm for converting a value from a source
type to a target type.
| |
| IConverter |
A converter converts a value from a source type to a target type.
|
Delegates
| Delegate | Description | |
|---|---|---|
| Conversion |
Represents a method that converts an object into an object of another type.
| |
| Conversion<(Of <(TSource, TTarget>)>) |
Represents a strongly-typed method that converts an object into an object of another type.
| |
| FormattingFunc |
Represents a method that displays an object in a readable textual form.
| |
| FormattingFunc<(Of <(T>)>) |
Represents a strongly-typed method that displays an object in a readable textual form.
|
