mscorlib(4.0.0.0) API with additions
IConvertible.cs
2 
3 namespace System
4 {
6  [CLSCompliant(false)]
7  [ComVisible(true)]
8  [__DynamicallyInvokable]
9  public interface IConvertible
10  {
13  [__DynamicallyInvokable]
15 
19  [__DynamicallyInvokable]
20  bool ToBoolean(IFormatProvider provider);
21 
25  [__DynamicallyInvokable]
26  char ToChar(IFormatProvider provider);
27 
31  [__DynamicallyInvokable]
32  sbyte ToSByte(IFormatProvider provider);
33 
37  [__DynamicallyInvokable]
38  byte ToByte(IFormatProvider provider);
39 
43  [__DynamicallyInvokable]
44  short ToInt16(IFormatProvider provider);
45 
49  [__DynamicallyInvokable]
50  ushort ToUInt16(IFormatProvider provider);
51 
55  [__DynamicallyInvokable]
56  int ToInt32(IFormatProvider provider);
57 
61  [__DynamicallyInvokable]
62  uint ToUInt32(IFormatProvider provider);
63 
67  [__DynamicallyInvokable]
68  long ToInt64(IFormatProvider provider);
69 
73  [__DynamicallyInvokable]
74  ulong ToUInt64(IFormatProvider provider);
75 
79  [__DynamicallyInvokable]
80  float ToSingle(IFormatProvider provider);
81 
85  [__DynamicallyInvokable]
86  double ToDouble(IFormatProvider provider);
87 
91  [__DynamicallyInvokable]
92  decimal ToDecimal(IFormatProvider provider);
93 
97  [__DynamicallyInvokable]
99 
103  [__DynamicallyInvokable]
104  string ToString(IFormatProvider provider);
105 
110  [__DynamicallyInvokable]
111  object ToType(Type conversionType, IFormatProvider provider);
112  }
113 }
float ToSingle(IFormatProvider provider)
Converts the value of this instance to an equivalent single-precision floating-point number using the...
double ToDouble(IFormatProvider provider)
Converts the value of this instance to an equivalent double-precision floating-point number using the...
bool ToBoolean(IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value using the specified culture-specif...
TypeCode
Specifies the type of an object.
Definition: TypeCode.cs:9
TypeCode GetTypeCode()
Returns the T:System.TypeCode for this instance.
Definition: __Canon.cs:3
char ToChar(IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode character using the specified culture-sp...
Provides a mechanism for retrieving an object to control formatting.
Represents an instant in time, typically expressed as a date and time of day. To browse the ....
Definition: DateTime.cs:13
DateTime ToDateTime(IFormatProvider provider)
Converts the value of this instance to an equivalent T:System.DateTime using the specified culture-sp...
sbyte ToSByte(IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture...
decimal ToDecimal(IFormatProvider provider)
Converts the value of this instance to an equivalent T:System.Decimal number using the specified cult...
int ToInt32(IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed integer using the specified cultur...
object ToType(Type conversionType, IFormatProvider provider)
Converts the value of this instance to an T:System.Object of the specified T:System....
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
string ToString(IFormatProvider provider)
Converts the value of this instance to an equivalent T:System.String using the specified culture-spec...
ushort ToUInt16(IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified cult...
short ToInt16(IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed integer using the specified cultur...
long ToInt64(IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed integer using the specified cultur...
ulong ToUInt64(IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified cult...
byte ToByte(IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified cultu...
Defines methods that convert the value of the implementing reference or value type to a common langua...
Definition: IConvertible.cs:9
uint ToUInt32(IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified cult...