C# Класс 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.
Наследование: VerboseFormatInfoBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Clone() публичный Метод

Creates deep copy of this instance.
public Clone ( ) : object
Результат object

DictionaryFormatInfo() публичный Метод

Default constructor.
public DictionaryFormatInfo ( ) : System
Результат System

DictionaryFormatInfo() публичный Метод

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.
Результат System

DictionaryFormatInfo() публичный Метод

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.
Результат System