Conversion Class

Handles common forms of data conversion.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public class Conversion
Inheritance
Object    Conversion

Constructors

ConversionInitializes a new instance of the Conversion class

Methods

CanConvertToBoolean Return a value indicating whether the value can be converted to a Boolean Type.
CanConvertToDateTime Return a value indicating whether the value can be converted to a DateTime Type.
CanConvertToDouble Return a value indicating whether the value can be converted to a Double.
CanConvertToInt64 Return a value indicating whether the value can be converted to an Int64 Type.
CommonAdd Return the result of addition for values 1 and 2.
CommonAnd(Byte, Byte) Return the result of AND for values 1 and 2.
CommonAnd(Char, Char) Return the result of AND for values 1 and 2.
CommonAnd(Object, Object) Return the result of AND for values 1 and 2.
CommonAssign Return assignment of value2 to the caller.
CommonCompare Return the result of comparison for values 1 and 2.
CommonDivide Return the result of division for values 1 and 2.
CommonEquals Compare two values and attempt to determine their Relative Equality.
CommonGreater Return the logical result of value1 > value2.
CommonGreaterEqual Return the logical result of value1 >= value2.
CommonLess Return the logical result of value1 < value2.
CommonLessEqual Return the logical result of value1 <= value2.
CommonModulus Return the result of modulus for values 1 and 2.
CommonMultiply Return the result of multiplication for values 1 and 2.
CommonNot Return the result of AND NOT Operation for values 1 and 2.
CommonNotEqual Return a value indicating whether values 1 and 2 are not equal.
CommonOr(Byte, Byte) Return the result of OR Operation for values 1 and 2.
CommonOr(Char, Char) Return the result of OR Operation for values 1 and 2.
CommonOr(Object, Object) Return the result of OR Operation for values 1 and 2.
CommonShiftLeft Return the result of Shift Left Operation for values 1 and 2.
CommonShiftRight Return the result of Shift Right Operation for values 1 and 2.
CommonSubtract Return the result of subtraction for values 1 and 2.
CommonXor(Byte, Byte) Return the result of XOR for values 1 and 2.
CommonXor(Byte, Int32) Return the result of XOR for values 1 and 2.
CommonXor(Char, Char) Return the result of XOR for values 1 and 2.
CommonXor(Char, Int32) Return the result of XOR for values 1 and 2.
CommonXor(Object, Object) Return the result of Exclusive OR Operator for values 1 and 2.
Compare Return the result of comparison for values 1 and 2.
Concat(Byte, Byte) Return a concatenated version of values 1 and 2.
Concat(Char, Char) Return a concatenated version of values 1 and 2.
Concat(String, String) Return a concatenated version of values 1 and 2.
Concat(String, String) Return a concatenated version of values 1 and 2.
Copy(Byte, Byte, UInt32) Copy a value to a byte array.
Copy(DateTime, Byte, UInt32) Copy a value to a byte array.
Copy(Double, Byte, UInt32) Copy a value to a byte array.
Copy(Guid, Byte, UInt32) Copy a value to a byte array.
Copy(Single, Byte, UInt32) Copy a value to a byte array.
Copy(String, Byte, UInt32) Copy a value to a byte array.
Copy(UInt16, Byte, UInt32) Copy a value to a byte array.
Copy(UInt32, Byte, UInt32) Copy a value to a byte array.
Copy(UInt64, Byte, UInt32) Copy a value to a byte array.
Copy(Byte, Byte, UInt32, Boolean) Copy a value to a byte array.
Copy(Byte, Byte, UInt32, Int32) Copy a value to a byte array.
Copy(DateTime, Byte, UInt32, UInt32) Copy a value to a byte array.
Copy(String, Byte, UInt32, Boolean) Copy a value to a byte array.
Copy(Byte, Byte, UInt32, UInt32, UInt32) Copy a value to a byte array.
DefaultStringForType Return the Default Value, represented as a string, for the specified Data Type.
DefaultToForType Return the Default To(x) conversion name, represented as a string, for the specified Data Type.
DefaultValueForType Return the Default Value, represented in its natural form, for the specified Data Type.
Equals(Object)
(Inherited from Object)
Equals(Object, Object) Compare two values and attempt to determine their Relative Equality.
Finalize
(Inherited from Object)
GetCommonType Return the common type between the two specified items.
GetCommonValue Return the caller's value, converted to the Target Type.
GetGuid Return the guid portion of the caller's string.
GetHashCode
(Inherited from Object)
GetNumber Return the number portion of the caller's string.
GetSysType(Object) Return a SysType Enumeration member corresponding with the system type closest matching the caller-specified value.
GetSysType(Type) Return a SysType Enumeration member corresponding with the system type specified by the caller.
GetType
(Inherited from Object)
HasBaseType Return a value indicating whether the specified Top Type has the specified Base Type.
IsBinaryType(SysType) Determine whether or not the caller supplied Data Type has a binary value.
IsBinaryType(Type) Determine whether or not the caller supplied Data Type has a binary value.
IsDate Determine whether or not the caller supplied value has a date constitution.
IsNumeric Determine whether or not the caller supplied value has a numeric value.
IsNumericType(String) Return a value indicating whether the specified value can be converted purely to a number without any loss of information.
IsNumericType(SysType) Determine whether or not the caller supplied Data Type has a numeric value.
IsNumericType(Type) Determine whether or not the caller supplied Data Type has a numeric value.
IsSelfClosingTag Return a value indicating whether the specified tag name is self-closing.
IsTextType Return a value indicating whether the specified type is naturally a text type.
IsXml Return a value indicating whether the specified string is Xml.
IsXmlEmbedded Return a value indicating whether the specified string is embedded Xml.
MemberwiseClone
(Inherited from Object)
Not(UInt16) Return the binary compliment of the specified value.
Not(UInt32) Return the binary compliment of the specified value.
Not(UInt64) Return the binary compliment of the specified value.
Not(UInt16, UInt16) Return the NAND result of values 1 and 2.
Not(UInt32, UInt32) Return the NAND result of values 1 and 2.
Not(UInt64, UInt64) Return the NAND result of values 1 and 2.
NumberSuffix(Int32) Return the specified number, formatted with the appropriate suffix.
NumberSuffix(Int64) Return the specified number, formatted with the appropriate suffix.
Or(UInt16, UInt16) Return the OR result of values 1 and 2.
Or(UInt32, UInt32) Return the OR result of values 1 and 2.
Or(UInt64, UInt64) Return the OR result of values 1 and 2.
RoundDown(Decimal) Return an integer value, rounded down from a floating point value.
RoundDown(Double) Return an integer value, rounded down from a floating point value.
RoundDown(Single) Return an integer value, rounded down from a floating point value.
RoundUp(Double) Return an integer value, rounded up from a floating point value.
RoundUp(Single) Return an integer value, rounded up from a floating point value.
TextNumber Return the binary value of the number expressed in text.
TextNumberInline Return the string value with the verbose number converted to numerical digits.
ToBoolean(Object) Return the Boolean representation of a value.
ToBoolean(String) Return the Boolean representation of a value.
ToByte Return the byte found at the specified offset of the buffer.
ToByteArray(Object) Return a byte array, converted from an object.
ToByteArray(String) Convert a string to a byte array and return the byte array.
ToByteArray(Object, UInt32) Return a byte array, converted from an object.
ToCamelCase Return a representation of the caller's string formatted as Camel Case text.
ToChar Return the Character Value specified by the caller's Int.
ToDataType Convert the incoming value to the specified data type.
ToDateTime(Object) Return a value converted to DateTime, with no exception thrown in the case that the specified value is not valid.
ToDateTime(String) Return a value converted to DateTime, with no exception thrown in the case that the specified value is not valid.
ToDateTime(Byte, UInt32) Return the DateTime representation of bytes in the specified offset of the caller's buffer.
ToDateTime(Byte, UInt32, UInt32) Return a Date Time, converted from binary values at the specified offset within the buffer.
ToDecimal(Object) Return the Decimal representation of the specified object.
ToDecimal(String, Decimal) Return a number converted to Decimal, with no exception thrown in the case that the specified value is not valid.
ToDouble(Object) Return a Double floating point value from the caller specified value.
ToDouble(Byte, UInt32) Return a Double floating point value from the specified location in the buffer.
ToDouble(String, Double) Return a number converted to Double, with no exception thrown in the case that the specified value is not valid.
ToGuid(Byte, UInt32) Return a Guid value from the specified location in the buffer.
ToGuid(Object, Guid) Return a Guid value from the specified object.
ToGuid(String, Guid) Return a Guid value from the specified string.
ToHex(Byte) Return a string of byte values represented in Hexadecimal.
ToHex(Byte, HexStyle) Return a string of byte values represented in Hexadecimal.
ToHex(Int32, HexStyle) Return a hexadecimal string representing the caller-specified value.
ToHex(Int64, HexStyle) Return a hexadecimal string representing the caller-specified value.
ToHex(String, HexStyle) Return a string of byte values represented in Hexadecimal.
ToInt32(Object) Return the Integer representation of the specified object.
ToInt32(String, Int32) Return a number converted to Int32, with no exception thrown in the case that the specified value is not valid.
ToInt32Positive Return a number converted to a positive Int32, with no exception thrown in the case that the specified value is not valid.
ToInt64(Object) Return the Integer representation of the specified object.
ToInt64(String, Int64) Return a number converted to Int64, with no exception thrown in the case that the specified value is not valid.
ToPluralText Return the Plural Text version of the caller-supplied singular text.
ToRegEx Return a Regular Expression Pattern, converted from the caller's string.
ToSingle(Object) Return the Single representation of the specified object.
ToSingle(Byte, UInt32) Return a single floating point value from the specified location in the caller's buffer.
ToSingle(String, Single) Return a number converted to Single, with no exception thrown in the case that the specified value is not valid.
ToSocialSecurity Return a formatted value for the provided unformatted Social Security Number.
ToString
(Inherited from Object)
ToString(Byte) Return a string of byte values.
ToString(Object) Return the formatted String representation of the specified value.
ToString(Byte, UInt32) Return the String representation of bytes in the specified offset of the caller's buffer.
ToString(Object, String) Return the formatted String representation of the specified value.
ToString(Byte, UInt32, Boolean) Return the String representation of bytes in the specified offset of the caller's buffer.
ToString(Byte, UInt32, UInt32) Return the String representation of bytes in the specified offset of the caller's buffer.
ToTelephone Return a formatted value for the provided unformatted Telephone Number.
ToTimeSpan Return a value converted to TimeSpan, with no exception thrown in the case that the specified value is not valid.
ToTitleCase Return a representation of the caller's string formatted as Title Case text.
ToUInt16 Return the Unsigned Integer representation of the bytes in the specified offset of the caller's buffer.
ToUInt32(Object) Return the Unsigned Integer representation of the specified object.
ToUInt32(Byte, UInt32) Return the Unsigned Integer representation of the bytes in the specified offset of the caller's buffer.
ToUInt64(Object) Return the Unsigned Integer representation of the specified object.
ToUInt64(Byte, UInt32) Return the Unsigned Integer representation of the bytes in the specified offset of the caller's buffer.
ToValueOfType(Object, SysType, Boolean) Return the caller's value, casted to the specified destination value.
ToValueOfType(Object, Type, Boolean) Return the caller's value, casted to the specified destination value.
ToVerboseNumber Return a verbose (written) version of the caller-supplied numeric value.
ToXmlContent Return an Xml inner String formatted for use as a standard Xml Object.
ToXmlEmbedded(Object) Return an Xml String formatted for embedded transport within a single element.
ToXmlEmbedded(String) Return an Xml String formatted for embedded transport within a single element.
Xor(UInt16, UInt16) Return the XOR result of values 1 and 2.
Xor(UInt32, UInt32) Return the XOR result of values 1 and 2.
Xor(UInt64, UInt64) Return the XOR result of values 1 and 2.

Events

RequestAreaCode Fired when the local Telephone Area Code is needed.

See Also