Supports custom formatting of numeric properties.

Namespace: Simol
Assembly: Simol (in Simol.dll) Version: 1.0.0.0

Syntax

C#
public class NumberFormatAttribute : SimolFormatAttribute
Visual Basic
Public Class NumberFormatAttribute _
	Inherits SimolFormatAttribute
Visual C++
public ref class NumberFormatAttribute : public SimolFormatAttribute

Remarks

Mark properties with this attribute to override the default formatting and conversion rules used for numeric types. See ISimol for more information on the default number formatting rules.

The total number of whole and decimal digits requested may not exceed the maximum number of digits supported by the property type. Care should be taken when using an offset with floating point types. If the number of whole digits requested is too high, precision can be lost due to application of the offset value during formatting.

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    Simol..::..SimolAttribute
      Simol..::..SimolFormatAttribute
        Simol..::..NumberFormatAttribute

See Also