System::IConvertible class
Contents
[
Hide
]IConvertible class
Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class IConvertible : public virtual System::Object
Methods
Method | Description |
---|---|
virtual GetTypeCode() | Returns the type code for this instance. |
virtual ToBoolean(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information. |
virtual ToByte(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 8-bit uint32_teger using the specified culture-specific formatting information. |
virtual ToChar(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information. |
virtual ToDateTime(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent System::DateTime using the specified culture-specific formatting information. |
virtual ToDecimal(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent System::Decimal number using the specified culture-specific formatting information. |
virtual ToDouble(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.. |
virtual ToInt16(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information. |
virtual ToInt32(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information. |
virtual ToInt64(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information. |
virtual ToSByte(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information. |
virtual ToSingle(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information. |
virtual ToString(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent System::String using the specified culture-specific formatting information. |
virtual ToString() const | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
virtual ToType(const TypeInfo&, System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to a System::Object of the specified System::Type that has an equivalent value, using the specified culture-specific formatting information. |
virtual ToUInt16(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 16-bit uint32_teger using the specified culture-specific formatting information. |
virtual ToUInt32(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 32-bit uint32_teger using the specified culture-specific formatting information. |
virtual ToUInt64(System::SharedPtr<System::IFormatProvider>) | Converts the value of this instance to an equivalent 64-bit uint32_teger using the specified culture-specific formatting information. |
See Also
- Class Object
- Namespace System
- Library Aspose.PUB for C++