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

Formats strings that represent matrices of scalar types. Also applicable to jagged arrays of scalar types. VerboseFormatInfo delegates calls to this class when formatting two-dimensional arrays or jagged arrays of simple types. This class is internal and cannot be used directly.
Inheritance: VerboseFormatInfoBase
Mostra file Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Creates deep copy of this instance.

CompactMatrixFormatInfo ( ) : System

Default constructor.

CompactMatrixFormatInfo ( CompactMatrixFormatInfo other ) : System

Copy constructor which uses other instance to initialize all contained values.

CompactMatrixFormatInfo ( VerboseFormatInfoBase other ) : System

Copy constructor which uses other instance to copy values that are common to all verbose format providers.

Private Methods

Method Description
AppendFriendlyTypeName ( Type type, object instance, StringBuilder sb, int &maxLength ) : bool

Formats user friendly representation of the name of the given matrix or jagged array type.

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.

GetDimensions ( Array instance, int &rowsCount, int &lowColsCount, int &highColsCount ) : void

Extracts dimension lengths for the given matrix or jagged array instance.

GetElementType ( Type dataType ) : Type

Gets element type of the matrix or jagged array. Returns null if specified data type is neither matrix nor jagged array.

GetMaxValueLength ( Array array ) : int

Iterates through all values in the matrix or jagged array and finds maximum length required to show any of the values contained.

IsFormatApplicable ( Type dataType ) : bool

Gets value indicating whether this format provider can be applied to specified data type or not. This format provider is applicable to matrices (arrays of rank 2) and to jagged arrays, but only if element type is supported by ScalarFormatInfo format provider.

Method Details

Clone() public method

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

CompactMatrixFormatInfo() public method

Default constructor.
public CompactMatrixFormatInfo ( ) : System
return System

CompactMatrixFormatInfo() public method

Copy constructor which uses other instance to initialize all contained values.
public CompactMatrixFormatInfo ( CompactMatrixFormatInfo other ) : System
other CompactMatrixFormatInfo Instance from which internal values are copied.
return System

CompactMatrixFormatInfo() public method

Copy constructor which uses other instance to copy values that are common to all verbose format providers.
public CompactMatrixFormatInfo ( VerboseFormatInfoBase other ) : System
other VerboseFormatInfoBase Object from which common values will be copied.
return System