Click or drag to resize

Currency Structure

X#
Internal type that implements the FoxPro Compatible CURRENCY type. This type has many operators and implicit converters that normally are never directly called from user code. The data in this type is stored as a System.Decimal with 4 decimal places

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
[SerializableAttribute]
 STRUCTURE Currency IMPLEMENTS IConvertible, 
	IFormattable, IComparable<CURRENCY>, IEquatable<CURRENCY>, 
	IComparable, ISerializable, ICurrency
Request Example View Source

The Currency type exposes the following members.

Constructors
  NameDescription
Public methodCurrency(Decimal)
Initializes a new instance of the Currency class
Public methodCurrency(Double)
Initializes a new instance of the Currency class
Public methodCurrency(ICurrency)
Initializes a new instance of the Currency class
Public methodCurrency(IFloat)
Initializes a new instance of the Currency class
Public methodCurrency(SerializationInfo, StreamingContext)
Construct a value from serialized data
Top
Properties
  NameDescription
Public propertyValue
Top
Methods
  NameDescription
Public methodCompareTo(Object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodCompareTo(Currency)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides Equals(Object).)
Public methodEquals(Currency)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides GetHashCode.)
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Public methodToString
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ToString.)
Public methodToString(String)
Converts the numeric value of this instance to its equivalent string representation.
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Currency, Currency)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Currency, Usual)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Usual, Currency)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberDecrement
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberDivision
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberEquality
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(Currency to Byte)
Public operatorStatic member(Currency to SByte)
Public operatorStatic member(Currency to Short)
Public operatorStatic member(Currency to Word)
Public operatorStatic member(Currency to Long)
Public operatorStatic member(Currency to DWord)
Public operatorStatic member(Currency to Int64)
Public operatorStatic member(Currency to UInt64)
Public operatorStatic memberGreaterThan
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberGreaterThanOrEqual
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(Byte to Currency)
Public operatorStatic member(Decimal to Currency)
Public operatorStatic member(Double to Currency)
Public operatorStatic member(Short to Currency)
Public operatorStatic member(Long to Currency)
Public operatorStatic member(Int64 to Currency)
Public operatorStatic member(SByte to Currency)
Public operatorStatic member(Single to Currency)
Public operatorStatic member(Word to Currency)
Public operatorStatic member(DWord to Currency)
Public operatorStatic member(UInt64 to Currency)
Public operatorStatic member(Currency to Double)
Public operatorStatic member(Currency to Single)
Public operatorStatic member(Currency to Float)
Public operatorStatic member(Currency to Decimal)
Public operatorStatic member(Float to Currency)
Public operatorStatic memberIncrement
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberInequality
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberLessThan
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberLessThanOrEqual
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberModulus
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberMultiply
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Currency, Currency)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Currency, Usual)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Usual, Currency)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberUnaryNegation
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberUnaryPlus
This operator is used in code generated by the compiler when needed.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIConvertibleToBoolean
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToByte
Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToChar
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDateTime
Converts the value of this instance to an equivalent DateTime using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDecimal
Converts the value of this instance to an equivalent Decimal number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDouble
Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt16
Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt32
Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt64
Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToSByte
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToSingle
Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToString
Converts the value of this instance to an equivalent String using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToType
Converts the value of this instance to an Object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt16
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt32
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt64
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.
Top
See Also

Reference

SystemDecimal