ValueType Classes

ValueType classes are ElSystem classes that represent different types of numeric, byte, string, and boolean values.   

Namespace: elsystem

Classes

The following ValueType classes are uses to represent values including true/false values, integer and real numbers, and text strings.  

  Name Description
Public property ElSystem.elBoolean Represents a boolean (true=1/false=0) value.
Public property ElSystem.elByte Represents an 8-bit unsigned integer (byte).
Public property Elsystem.elInt Represents a 32-bit integer number.
Public property ElSystem.elInt64 Represents a 64-bit integer number.
Public property ElSystem.elFloat Represents a 32-bit real (float) number.
Public property ElSystem.elDouble Represents a 64-bit real (double) number.
Public property ElSystem.elString Represents a text string as series of Unicode characters.
Common Methods

The following methods are common to the above ValueType classes, although not all methods are used by every class. The 'value' parameter refers to a value of the current instance type.  For information about specific methods for a specific ValueType class, refer to the Dictionary and the description for that method. 

  Name Description
Public property Epsilon() Represents the value of Epsilon for real value types.
Public property Equals(value) True if the current instance is equal to the specified value.
Public property Equals(elsystem.object) True if the current instance is equal to the specified object.
Public property FalseString Returns the text string 'false' for a boolean type.
Public property IsNaN(number) True if the number evaluates to a non-numeric value for real value types.
Public property IsNegativeInfinity(number) True if the number evaluates to negative infinity for real value types.
Public property IsPositiveInfinity(number) True if the number evaluates to positive infinity for real value types.
Public property FalseString() Returns the text string 'false' for a boolean type.
Public property MaxValue() Represents the largest possible value of this type.
Public property MinValue() Represents the smallest possible value of this type.
Public property NaN() Represents a value that is not a number(NaN) for real value types.
Public property NegativeInfinity() Represents the negative infinity number for real value types.
Public property Parse(string) Converts the string representation of a value to its class value.
Public property Parse(string, style) Converts the string representation of a value to its class value using the specified style value. See elNumberStyles for possible style codes.
Public property Parse(string, style, LCID) Converts the string representation of a value to its class value using the specified style value and LCID integer value. See elNumberStyles for possible style codes and LCID for language codes.
Public property PositiveInfinity() Represents the positive infinity number for real value types.
Public property ToString() Converts the value of the current instance to a text string.
Public property TrueString() Returns the text string 'true' for a boolean type.
Public property TryParse(snumber,value) True if the snumber string was converted into the referenced value without any errors.
Public property TryParse(snumber,style,value) True if the snumber string with the specified style format codes(s) was converted into the referenced value without any errors. See elNumberStyles for possible style codes.
Public property TryParse(snumber.style,LCID,value) True if the snumber string with the specified style format code(s) and language ID number was converted into the referenced value without any errors. See elNumberStyles for possible style codes and LCID for language codes.
Operators

The following operator are used with elInt64 values.

  Name Description
Public Method * For multiplying by a double or Int64 value.
Public Method + For adding a double or Int64 value.
Public Method += For adding a double or Int64 value and replacing.
Public Method - For subtracting a double or Int64 value.
Public Method -= For subtracting a double or Int64 value and replacing.
Public Method / For dividing by a double or Int64 value.
Public Method < True when comparing two values where the first is less than the second.
Public Method <> True when comparing two values that are not equal.
Public Method = For replacing by a double or Int64 value.
Public Method > True when comparing two values where the first is greater than the second.
     
Inheritance Hierarchy

elsystem.Object

elsystem.ValueType

elsystem.(name) {where name is the name of the value type}