Introduction >

UnitParser code (.NET/C#) >

NumberParser code (.NET/C#) >


DateParser code (.NET/C#) >

FlexibleParser code

NumberParser code (.NET/C#) >
On top of the basic NumberX features, NumberO also includes the public variable Others. This ReadOnlyCollection field lists a user-defined group of NumberD variables storing a version of the corresponding numeric information (i.e., decimal Value and BaseTenExponent) converted to the given numeric type.

The contents of Others can be easily set up and are automatically updated with every Value/BaseTenExponent variation. NumberO is meant to be used in situations involving multiple conversions to different numeric types.

All the specific NumberO/Others code is stored in the following two files:
  • NumberO.cs contains all the specific code required by Others.
    The most relevant parts of this file are PopulateOthers, method populating the NumberD items as instructed; and OtherTypes, enum easing the type input process.
  • Constructors_NumberO.cs stores the main code used by the NumberO constructor.