C# Class Gammtek.Conduit.Text.Formatting.DictionaryFormatInfo

Format provider used to format strings that represent objects that implement System.Collections.IDictionary or System.Collections.Generic.IDictionary<T> interface. Formatted string represents keys and values contained in the object. VerboseFormatInfo delegates calls to this class when formatting dictionary objects. This class is internal and cannot be used directly.
Inheritance: VerboseFormatInfoBase
Datei anzeigen Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Creates deep copy of this instance.

DictionaryFormatInfo ( ) : System

Default constructor.

DictionaryFormatInfo ( DictionaryFormatInfo other ) : System

Copy constructor which creates new instance identical to other instance of this class.

DictionaryFormatInfo ( VerboseFormatInfoBase other ) : System

Copy constructor which creates new instance having same values of common properties as other instance.

Private Methods

Method Description
Format ( StringBuilder sb, string format, object arg, IFormatProvider formatProvider, int &maxLength ) : bool

Converts the value of a specified object to an equivalent string representation using specified format and culture-specific formatting information.

GetDeclaredKeyValueType ( object arg, bool getKeyType ) : Type

Gets declared type of the keys or values used in this dictionary collection.

GetDictionaryObject ( object dict, object key ) : object

Gets object stored in the given dictionary under given key.

GetKeysCollection ( object arg ) : IEnumerable

Gets collection of keys of the dictionary object.

GetValue ( object dict, object key ) : object

Gets value from specified dictionary object which is associated with given key value.

IsFormatApplicable ( Type dataType ) : bool

Gets value indicating whether this formatter can format string which represents instance of given data type.

Method Details

Clone() public method

Creates deep copy of this instance.
public Clone ( ) : object
return object

DictionaryFormatInfo() public method

Default constructor.
public DictionaryFormatInfo ( ) : System
return System

DictionaryFormatInfo() public method

Copy constructor which creates new instance identical to other instance of this class.
public DictionaryFormatInfo ( DictionaryFormatInfo other ) : System
other DictionaryFormatInfo Instance from which values are copied to newly created instance.
return System

DictionaryFormatInfo() public method

Copy constructor which creates new instance having same values of common properties as other instance.
public DictionaryFormatInfo ( VerboseFormatInfoBase other ) : System
other VerboseFormatInfoBase Instance from which values are taken for common properties.
return System