17 implementations of IConvertible
mscorlib (17)
system\boolean.cs (1)
25
public struct Boolean : IComparable,
IConvertible
system\byte.cs (1)
34
public struct Byte : IComparable, IFormattable,
IConvertible
system\char.cs (1)
27
[System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)] public struct Char : IComparable,
IConvertible
system\datetime.cs (1)
57
public struct DateTime : IComparable, IFormattable,
IConvertible
, ISerializable, IComparable<DateTime>,IEquatable<DateTime> {
system\dbnull.cs (1)
18
public sealed class DBNull : ISerializable,
IConvertible
{
system\decimal.cs (1)
67
public struct Decimal : IFormattable, IComparable,
IConvertible
, IDeserializationCallback
system\double.cs (1)
32
public struct Double : IComparable, IFormattable,
IConvertible
system\enum.cs (1)
19
public abstract class Enum : ValueType, IComparable, IFormattable,
IConvertible
system\int16.cs (1)
31
public struct Int16 : IComparable, IFormattable,
IConvertible
system\int32.cs (1)
31
public struct Int32 : IComparable, IFormattable,
IConvertible
system\int64.cs (1)
30
public struct Int64 : IComparable, IFormattable,
IConvertible
system\sbyte.cs (1)
29
public struct SByte : IComparable, IFormattable,
IConvertible
system\single.cs (1)
31
public struct Single : IComparable, IFormattable,
IConvertible
system\string.cs (1)
48
public sealed class String : IComparable, ICloneable,
IConvertible
, IEnumerable
system\uint16.cs (1)
29
public struct UInt16 : IComparable, IFormattable,
IConvertible
system\uint32.cs (1)
31
public struct UInt32 : IComparable, IFormattable,
IConvertible
system\uint64.cs (1)
29
public struct UInt64 : IComparable, IFormattable,
IConvertible
488 references to IConvertible
mscorlib (354)
system\boolean.cs (16)
236
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
241
char
IConvertible
.ToChar(IFormatProvider provider) {
246
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
251
byte
IConvertible
.ToByte(IFormatProvider provider) {
256
short
IConvertible
.ToInt16(IFormatProvider provider) {
261
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
266
int
IConvertible
.ToInt32(IFormatProvider provider) {
271
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
276
long
IConvertible
.ToInt64(IFormatProvider provider) {
281
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
286
float
IConvertible
.ToSingle(IFormatProvider provider) {
291
double
IConvertible
.ToDouble(IFormatProvider provider) {
296
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
301
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
306
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
307
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\byte.cs (16)
189
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
194
char
IConvertible
.ToChar(IFormatProvider provider) {
199
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
204
byte
IConvertible
.ToByte(IFormatProvider provider) {
209
short
IConvertible
.ToInt16(IFormatProvider provider) {
214
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
219
int
IConvertible
.ToInt32(IFormatProvider provider) {
224
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
229
long
IConvertible
.ToInt64(IFormatProvider provider) {
234
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
239
float
IConvertible
.ToSingle(IFormatProvider provider) {
244
double
IConvertible
.ToDouble(IFormatProvider provider) {
249
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
254
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
259
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
260
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\char.cs (16)
434
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
439
char
IConvertible
.ToChar(IFormatProvider provider) {
444
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
449
byte
IConvertible
.ToByte(IFormatProvider provider) {
454
short
IConvertible
.ToInt16(IFormatProvider provider) {
459
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
464
int
IConvertible
.ToInt32(IFormatProvider provider) {
469
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
474
long
IConvertible
.ToInt64(IFormatProvider provider) {
479
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
484
float
IConvertible
.ToSingle(IFormatProvider provider) {
489
double
IConvertible
.ToDouble(IFormatProvider provider) {
494
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
499
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
504
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
505
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\convert.cs (73)
173
IConvertible
temp = value as
IConvertible
;
186
IConvertible
convertible = value as
IConvertible
;
211
IConvertible
v = value as
IConvertible
;
261
internal static Object DefaultToType(
IConvertible
value, Type targetType, IFormatProvider provider) {
338
IConvertible
ic = value as
IConvertible
;
386
return value == null? false: ((
IConvertible
)value).ToBoolean(null);
390
return value == null? false: ((
IConvertible
)value).ToBoolean(provider);
406
return ((
IConvertible
)value).ToBoolean(null);
470
return ((
IConvertible
)value).ToBoolean(null);
480
return value == null? (char)0: ((
IConvertible
)value).ToChar(null);
484
return value == null? (char)0: ((
IConvertible
)value).ToChar(provider);
488
return ((
IConvertible
)value).ToChar(null);
566
return ((
IConvertible
)value).ToChar(null);
573
return ((
IConvertible
)value).ToChar(null);
580
return ((
IConvertible
)value).ToChar(null);
585
return ((
IConvertible
)value).ToChar(null);
596
return value == null? (sbyte)0: ((
IConvertible
)value).ToSByte(null);
601
return value == null? (sbyte)0: ((
IConvertible
)value).ToSByte(provider);
700
return ((
IConvertible
)value).ToSByte(null);
709
return value == null? (byte)0: ((
IConvertible
)value).ToByte(null);
713
return value == null? (byte)0: ((
IConvertible
)value).ToByte(provider);
802
return ((
IConvertible
)value).ToByte(null);
812
return value == null? (short)0: ((
IConvertible
)value).ToInt16(null);
816
return value == null? (short)0: ((
IConvertible
)value).ToInt16(provider);
901
return ((
IConvertible
)value).ToInt16(null);
912
return value == null? (ushort)0: ((
IConvertible
)value).ToUInt16(null);
917
return value == null? (ushort)0: ((
IConvertible
)value).ToUInt16(provider);
1016
return ((
IConvertible
)value).ToUInt16(null);
1025
return value == null? 0: ((
IConvertible
)value).ToInt32(null);
1029
return value == null? 0: ((
IConvertible
)value).ToInt32(provider);
1126
return ((
IConvertible
)value).ToInt32(null);
1137
return value == null? 0: ((
IConvertible
)value).ToUInt32(null);
1142
return value == null? 0: ((
IConvertible
)value).ToUInt32(provider);
1244
return ((
IConvertible
)value).ToUInt32(null);
1253
return value == null? 0: ((
IConvertible
)value).ToInt64(null);
1257
return value == null? 0: ((
IConvertible
)value).ToInt64(provider);
1334
return ((
IConvertible
)value).ToInt64(null);
1344
return value == null? 0: ((
IConvertible
)value).ToUInt64(null);
1349
return value == null? 0: ((
IConvertible
)value).ToUInt64(provider);
1443
return ((
IConvertible
)value).ToUInt64(null);
1452
return value == null? 0: ((
IConvertible
)value).ToSingle(null);
1456
return value == null? 0: ((
IConvertible
)value).ToSingle(provider);
1469
return ((
IConvertible
)value).ToSingle(null);
1531
return ((
IConvertible
)value).ToSingle(null);
1540
return value == null? 0: ((
IConvertible
)value).ToDouble(null);
1544
return value == null? 0: ((
IConvertible
)value).ToDouble(provider);
1562
return ((
IConvertible
)value).ToDouble(null);
1618
return ((
IConvertible
)value).ToDouble(null);
1627
return value == null? 0: ((
IConvertible
)value).ToDecimal(null);
1631
return value == null? 0: ((
IConvertible
)value).ToDecimal(provider);
1644
return ((
IConvertible
)value).ToDecimal(null);
1704
return ((
IConvertible
)value).ToDecimal(null);
1717
return value == null? DateTime.MinValue: ((
IConvertible
)value).ToDateTime(null);
1721
return value == null? DateTime.MinValue: ((
IConvertible
)value).ToDateTime(provider);
1738
return ((
IConvertible
)value).ToDateTime(null);
1742
return ((
IConvertible
)value).ToDateTime(null);
1746
return ((
IConvertible
)value).ToDateTime(null);
1751
return ((
IConvertible
)value).ToDateTime(null);
1755
return ((
IConvertible
)value).ToDateTime(null);
1760
return ((
IConvertible
)value).ToDateTime(null);
1764
return ((
IConvertible
)value).ToDateTime(null);
1769
return ((
IConvertible
)value).ToDateTime(null);
1773
return ((
IConvertible
)value).ToDateTime(null);
1777
return ((
IConvertible
)value).ToDateTime(null);
1781
return ((
IConvertible
)value).ToDateTime(null);
1785
return ((
IConvertible
)value).ToDateTime(null);
1789
return ((
IConvertible
)value).ToDateTime(null);
1802
IConvertible
ic = value as
IConvertible
;
system\datetime.cs (16)
1579
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
1584
char
IConvertible
.ToChar(IFormatProvider provider) {
1589
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
1594
byte
IConvertible
.ToByte(IFormatProvider provider) {
1599
short
IConvertible
.ToInt16(IFormatProvider provider) {
1604
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
1609
int
IConvertible
.ToInt32(IFormatProvider provider) {
1614
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
1619
long
IConvertible
.ToInt64(IFormatProvider provider) {
1624
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
1629
float
IConvertible
.ToSingle(IFormatProvider provider) {
1634
double
IConvertible
.ToDouble(IFormatProvider provider) {
1639
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
1644
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
1649
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
1650
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\dbnull.cs (16)
48
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
53
char
IConvertible
.ToChar(IFormatProvider provider) {
58
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
63
byte
IConvertible
.ToByte(IFormatProvider provider) {
68
short
IConvertible
.ToInt16(IFormatProvider provider) {
73
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
78
int
IConvertible
.ToInt32(IFormatProvider provider) {
83
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
88
long
IConvertible
.ToInt64(IFormatProvider provider) {
93
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
98
float
IConvertible
.ToSingle(IFormatProvider provider) {
103
double
IConvertible
.ToDouble(IFormatProvider provider) {
108
decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
113
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
118
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
119
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\decimal.cs (16)
1201
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
1207
char
IConvertible
.ToChar(IFormatProvider provider) {
1212
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
1217
byte
IConvertible
.ToByte(IFormatProvider provider) {
1222
short
IConvertible
.ToInt16(IFormatProvider provider) {
1227
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
1232
int
IConvertible
.ToInt32(IFormatProvider provider) {
1237
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
1242
long
IConvertible
.ToInt64(IFormatProvider provider) {
1247
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
1252
float
IConvertible
.ToSingle(IFormatProvider provider) {
1257
double
IConvertible
.ToDouble(IFormatProvider provider) {
1262
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
1267
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
1272
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
1273
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\diagnostics\eventing\eventprovider.cs (2)
845
data = ((
IConvertible
)data).ToInt32(null);
854
data = ((
IConvertible
)data).ToInt64(null);
system\double.cs (16)
303
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
308
char
IConvertible
.ToChar(IFormatProvider provider) {
313
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
318
byte
IConvertible
.ToByte(IFormatProvider provider) {
323
short
IConvertible
.ToInt16(IFormatProvider provider) {
328
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
333
int
IConvertible
.ToInt32(IFormatProvider provider) {
338
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
343
long
IConvertible
.ToInt64(IFormatProvider provider) {
348
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
353
float
IConvertible
.ToSingle(IFormatProvider provider) {
358
double
IConvertible
.ToDouble(IFormatProvider provider) {
363
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
368
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
373
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
374
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\enum.cs (16)
952
bool
IConvertible
.ToBoolean(IFormatProvider provider)
958
char
IConvertible
.ToChar(IFormatProvider provider)
964
sbyte
IConvertible
.ToSByte(IFormatProvider provider)
970
byte
IConvertible
.ToByte(IFormatProvider provider)
976
short
IConvertible
.ToInt16(IFormatProvider provider)
982
ushort
IConvertible
.ToUInt16(IFormatProvider provider)
988
int
IConvertible
.ToInt32(IFormatProvider provider)
994
uint
IConvertible
.ToUInt32(IFormatProvider provider)
1000
long
IConvertible
.ToInt64(IFormatProvider provider)
1006
ulong
IConvertible
.ToUInt64(IFormatProvider provider)
1012
float
IConvertible
.ToSingle(IFormatProvider provider)
1018
double
IConvertible
.ToDouble(IFormatProvider provider)
1024
Decimal
IConvertible
.ToDecimal(IFormatProvider provider)
1030
DateTime
IConvertible
.ToDateTime(IFormatProvider provider)
1036
Object
IConvertible
.ToType(Type type, IFormatProvider provider)
1038
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\int16.cs (16)
202
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
207
char
IConvertible
.ToChar(IFormatProvider provider) {
212
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
217
byte
IConvertible
.ToByte(IFormatProvider provider) {
222
short
IConvertible
.ToInt16(IFormatProvider provider) {
227
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
232
int
IConvertible
.ToInt32(IFormatProvider provider) {
237
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
242
long
IConvertible
.ToInt64(IFormatProvider provider) {
247
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
252
float
IConvertible
.ToSingle(IFormatProvider provider) {
257
double
IConvertible
.ToDouble(IFormatProvider provider) {
262
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
267
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
272
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
273
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\int32.cs (16)
175
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
180
char
IConvertible
.ToChar(IFormatProvider provider) {
185
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
190
byte
IConvertible
.ToByte(IFormatProvider provider) {
195
short
IConvertible
.ToInt16(IFormatProvider provider) {
200
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
205
int
IConvertible
.ToInt32(IFormatProvider provider) {
210
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
215
long
IConvertible
.ToInt64(IFormatProvider provider) {
220
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
225
float
IConvertible
.ToSingle(IFormatProvider provider) {
230
double
IConvertible
.ToDouble(IFormatProvider provider) {
235
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
240
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
245
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
246
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\int64.cs (16)
154
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
159
char
IConvertible
.ToChar(IFormatProvider provider) {
164
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
169
byte
IConvertible
.ToByte(IFormatProvider provider) {
174
short
IConvertible
.ToInt16(IFormatProvider provider) {
179
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
184
int
IConvertible
.ToInt32(IFormatProvider provider) {
189
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
194
long
IConvertible
.ToInt64(IFormatProvider provider) {
199
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
204
float
IConvertible
.ToSingle(IFormatProvider provider) {
209
double
IConvertible
.ToDouble(IFormatProvider provider) {
214
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
219
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
224
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
225
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\rttype.cs (1)
4725
idx[i] = ((
IConvertible
)providedArgs[i]).ToInt32(null);
system\runtime\remoting\objref.cs (2)
495
objrefFlags = ((
IConvertible
)o).ToInt32(null);
507
value = ((
IConvertible
)o).ToInt32(null);
system\sbyte.cs (16)
210
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
215
char
IConvertible
.ToChar(IFormatProvider provider) {
220
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
225
byte
IConvertible
.ToByte(IFormatProvider provider) {
230
short
IConvertible
.ToInt16(IFormatProvider provider) {
235
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
240
int
IConvertible
.ToInt32(IFormatProvider provider) {
245
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
250
long
IConvertible
.ToInt64(IFormatProvider provider) {
255
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
260
float
IConvertible
.ToSingle(IFormatProvider provider) {
265
double
IConvertible
.ToDouble(IFormatProvider provider) {
270
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
275
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
280
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
281
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\single.cs (16)
273
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
278
char
IConvertible
.ToChar(IFormatProvider provider) {
283
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
288
byte
IConvertible
.ToByte(IFormatProvider provider) {
293
short
IConvertible
.ToInt16(IFormatProvider provider) {
298
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
303
int
IConvertible
.ToInt32(IFormatProvider provider) {
308
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
313
long
IConvertible
.ToInt64(IFormatProvider provider) {
318
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
323
float
IConvertible
.ToSingle(IFormatProvider provider) {
328
double
IConvertible
.ToDouble(IFormatProvider provider) {
333
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
338
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
343
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
344
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\string.cs (16)
3365
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
3370
char
IConvertible
.ToChar(IFormatProvider provider) {
3375
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
3380
byte
IConvertible
.ToByte(IFormatProvider provider) {
3385
short
IConvertible
.ToInt16(IFormatProvider provider) {
3390
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
3395
int
IConvertible
.ToInt32(IFormatProvider provider) {
3400
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
3405
long
IConvertible
.ToInt64(IFormatProvider provider) {
3410
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
3415
float
IConvertible
.ToSingle(IFormatProvider provider) {
3420
double
IConvertible
.ToDouble(IFormatProvider provider) {
3425
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
3430
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
3435
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
3436
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\uint16.cs (16)
177
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
182
char
IConvertible
.ToChar(IFormatProvider provider) {
187
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
192
byte
IConvertible
.ToByte(IFormatProvider provider) {
197
short
IConvertible
.ToInt16(IFormatProvider provider) {
202
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
207
int
IConvertible
.ToInt32(IFormatProvider provider) {
212
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
217
long
IConvertible
.ToInt64(IFormatProvider provider) {
222
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
227
float
IConvertible
.ToSingle(IFormatProvider provider) {
232
double
IConvertible
.ToDouble(IFormatProvider provider) {
237
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
242
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
247
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
248
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\uint32.cs (16)
159
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
164
char
IConvertible
.ToChar(IFormatProvider provider) {
169
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
174
byte
IConvertible
.ToByte(IFormatProvider provider) {
179
short
IConvertible
.ToInt16(IFormatProvider provider) {
184
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
189
int
IConvertible
.ToInt32(IFormatProvider provider) {
194
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
199
long
IConvertible
.ToInt64(IFormatProvider provider) {
204
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
209
float
IConvertible
.ToSingle(IFormatProvider provider) {
214
double
IConvertible
.ToDouble(IFormatProvider provider) {
219
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
224
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
229
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
230
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\uint64.cs (16)
154
bool
IConvertible
.ToBoolean(IFormatProvider provider) {
159
char
IConvertible
.ToChar(IFormatProvider provider) {
164
sbyte
IConvertible
.ToSByte(IFormatProvider provider) {
169
byte
IConvertible
.ToByte(IFormatProvider provider) {
174
short
IConvertible
.ToInt16(IFormatProvider provider) {
179
ushort
IConvertible
.ToUInt16(IFormatProvider provider) {
184
int
IConvertible
.ToInt32(IFormatProvider provider) {
189
uint
IConvertible
.ToUInt32(IFormatProvider provider) {
194
long
IConvertible
.ToInt64(IFormatProvider provider) {
199
ulong
IConvertible
.ToUInt64(IFormatProvider provider) {
204
float
IConvertible
.ToSingle(IFormatProvider provider) {
209
double
IConvertible
.ToDouble(IFormatProvider provider) {
214
Decimal
IConvertible
.ToDecimal(IFormatProvider provider) {
219
DateTime
IConvertible
.ToDateTime(IFormatProvider provider) {
224
Object
IConvertible
.ToType(Type type, IFormatProvider provider) {
225
return Convert.DefaultToType((
IConvertible
)this, type, provider);
system\variant.cs (4)
435
IConvertible
ic = System.Runtime.Remoting.RemotingServices.IsTransparentProxy(o) ? null : o as
IConvertible
;
546
IConvertible
iv = pValue as
IConvertible
;
System (5)
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1062
Output.Write("Global.Microsoft.VisualBasic.ChrW(" + ((
IConvertible
)e.Value).ToInt32(CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture) + ")");
compmod\system\componentmodel\EnumConverter.cs (4)
163
if (value is
IConvertible
&& value.GetType() != underlyingType) {
164
value = ((
IConvertible
)value).ToType(underlyingType, culture);
182
if (value is
IConvertible
) {
183
object convertedValue = ((
IConvertible
)value).ToType(underlyingType, culture);
System.AddIn.Contract (2)
System\Addin\Contract\RemoteArgument.cs (2)
107
IConvertible
convertibleValue = value as
IConvertible
;
System.Data (74)
fx\src\data\System\Data\Common\BooleanStorage.cs (2)
110
value = ((
IConvertible
)value).ToBoolean(FormatProvider);
139
values[record] = ((
IConvertible
)value).ToBoolean(FormatProvider);
fx\src\data\System\Data\Common\ByteStorage.cs (2)
176
value = ((
IConvertible
)value).ToByte(FormatProvider);
205
values[record] = ((
IConvertible
)value).ToByte(FormatProvider);
fx\src\data\System\Data\Common\CharStorage.cs (2)
110
value = ((
IConvertible
)value).ToChar(FormatProvider);
139
Char ch = ((
IConvertible
)value).ToChar(FormatProvider);
fx\src\data\System\Data\Common\DateTimeStorage.cs (2)
111
value = ((
IConvertible
)value).ToDateTime(FormatProvider);
142
DateTime tmpValue = ((
IConvertible
)value).ToDateTime(FormatProvider);
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (4)
264
return ((
IConvertible
)value).ToBoolean(CultureInfo.InvariantCulture);
294
return ((
IConvertible
)value).ToBoolean(CultureInfo.InvariantCulture);
306
return ((
IConvertible
)value).ToInt32(CultureInfo.InvariantCulture);
318
return ((
IConvertible
)value).ToString(CultureInfo.InvariantCulture);
fx\src\data\System\Data\Common\DecimalStorage.cs (2)
171
value = ((
IConvertible
)value).ToDecimal(FormatProvider);
196
values[record] = ((
IConvertible
)value).ToDecimal(FormatProvider);
fx\src\data\System\Data\Common\DoubleStorage.cs (2)
174
value = ((
IConvertible
)value).ToDouble(FormatProvider);
203
values[record] = ((
IConvertible
)value).ToDouble(FormatProvider);
fx\src\data\System\Data\Common\Int16Storage.cs (2)
180
value = ((
IConvertible
)value).ToInt16(FormatProvider);
209
values[record] = ((
IConvertible
)value).ToInt16(FormatProvider);
fx\src\data\System\Data\Common\Int32Storage.cs (2)
179
value = ((
IConvertible
)value).ToInt32(FormatProvider);
208
values[record] = ((
IConvertible
)value).ToInt32(FormatProvider);
fx\src\data\System\Data\Common\Int64Storage.cs (2)
174
value = ((
IConvertible
)value).ToInt64(FormatProvider);
203
values[record] = ((
IConvertible
)value).ToInt64(FormatProvider);
fx\src\data\System\Data\Common\SByteStorage.cs (2)
176
value = ((
IConvertible
)value).ToSByte(FormatProvider);
205
values[record] = ((
IConvertible
)value).ToSByte(FormatProvider);
fx\src\data\System\Data\Common\SingleStorage.cs (2)
175
value = ((
IConvertible
)value).ToSingle(FormatProvider);
204
values[record] = ((
IConvertible
)value).ToSingle(FormatProvider);
fx\src\data\System\Data\Common\SQLConvert.cs (31)
496
return ((
IConvertible
)(bool)value).ToString(formatProvider);
498
return ((
IConvertible
)(Char)value).ToString(formatProvider);
500
return ((
IConvertible
)(SByte)value).ToString(formatProvider);
502
return ((
IConvertible
)(Byte)value).ToString(formatProvider);
504
return ((
IConvertible
)(Int16)value).ToString(formatProvider);
506
return ((
IConvertible
)(UInt16)value).ToString(formatProvider);
508
return ((
IConvertible
)(Int32)value).ToString(formatProvider);
510
return ((
IConvertible
)(UInt32)value).ToString(formatProvider);
512
return ((
IConvertible
)(Int64)value).ToString(formatProvider);
514
return ((
IConvertible
)(UInt64)value).ToString(formatProvider);
516
return ((
IConvertible
)(Single)value).ToString(formatProvider);
518
return ((
IConvertible
)(Double)value).ToString(formatProvider);
520
return ((
IConvertible
)(Decimal)value).ToString(formatProvider);
522
return ((
IConvertible
)(DateTime)value).ToString(formatProvider);
537
IConvertible
iconvertible = (value as
IConvertible
);
574
return ((
IConvertible
)(string)value).ToChar(formatProvider);
576
return ((
IConvertible
)(string)value).ToSByte(formatProvider);
578
return ((
IConvertible
)(string)value).ToByte(formatProvider);
580
return ((
IConvertible
)(string)value).ToInt16(formatProvider);
582
return ((
IConvertible
)(string)value).ToUInt16(formatProvider);
584
return ((
IConvertible
)(string)value).ToInt32(formatProvider);
586
return ((
IConvertible
)(string)value).ToUInt32(formatProvider);
588
return ((
IConvertible
)(string)value).ToInt64(formatProvider);
590
return ((
IConvertible
)(string)value).ToUInt64(formatProvider);
592
return ((
IConvertible
)(string)value).ToSingle(formatProvider);
594
return ((
IConvertible
)(string)value).ToDouble(formatProvider);
596
return ((
IConvertible
)(string)value).ToDecimal(formatProvider);
598
return ((
IConvertible
)(string)value).ToDateTime(formatProvider);
781
IConvertible
iconvertible = (value as
IConvertible
);
fx\src\data\System\Data\Common\UInt16Storage.cs (2)
179
value = ((
IConvertible
)value).ToUInt16(FormatProvider);
208
values[record] = ((
IConvertible
)value).ToUInt16(FormatProvider);
fx\src\data\System\Data\Common\UInt32Storage.cs (2)
179
value = ((
IConvertible
)value).ToUInt32(FormatProvider);
208
values[record] = ((
IConvertible
)value).ToUInt32(FormatProvider);
fx\src\data\System\Data\Common\UInt64Storage.cs (2)
173
value = ((
IConvertible
)value).ToUInt64(FormatProvider);
202
values[record] = ((
IConvertible
)value).ToUInt64(FormatProvider);
fx\src\data\System\Data\Filter\ConstNode.cs (4)
120
IConvertible
convertible = (constant as
IConvertible
);
179
IConvertible
convertible = (constant as
IConvertible
);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (2)
293
IConvertible
ic = (value as
IConvertible
);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (5)
992
targetColumn.AutoIncrementSeed = ((
IConvertible
)value).ToInt64(CultureInfo.InvariantCulture);
1000
targetColumn.AutoIncrementStep = ((
IConvertible
)value).ToInt64(CultureInfo.InvariantCulture);
1008
targetColumn.ColumnMapping = (MappingType)((
IConvertible
)value).ToInt32(CultureInfo.InvariantCulture);
1016
targetColumn.Namespace = ((
IConvertible
)value).ToString(CultureInfo.InvariantCulture);
1024
targetColumn.Expression = ((
IConvertible
)value).ToString(CultureInfo.InvariantCulture);
System.Data.Linq (2)
DbConvert.cs (2)
149
else if (toType == typeof(string) && !(typeof(
IConvertible
).IsAssignableFrom(fromType))) {
167
else if (!(typeof(
IConvertible
).IsAssignableFrom(toType)) &&
System.Data.SqlXml (2)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
562
value = ((
IConvertible
) value).ToDouble(null);
607
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), ((
IConvertible
) value).ToDouble(null)));
System.Management (11)
Instrumentation\EventSource.cs (1)
551
int id = ((
IConvertible
)instanceId).ToInt32((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32)));
managementquery.cs (2)
3050
withinInterval = TimeSpan.FromSeconds(((
IConvertible
)intervalString).ToDouble(null));
3063
groupWithinInterval = TimeSpan.FromSeconds(((
IConvertible
)intervalString).ToDouble(null));
property.cs (8)
27
return ((
IConvertible
)theValue).ToType(typeof(object), null);
646
((short[])wmiValue) [i] = ((
IConvertible
)((System.Byte)(arrayValue[i]))).ToInt16(null);
656
((short[])wmiValue) [i] = ((
IConvertible
)((System.SByte)(arrayValue[i]))).ToInt16(null);
671
((int[])wmiValue) [i] = ((
IConvertible
)((System.UInt16)(arrayValue[i]))).ToInt32(null);
731
((short[])wmiValue) [i] = ((
IConvertible
)((System.Char)(arrayValue[i]))).ToInt16(null);
770
wmiValue = ((
IConvertible
)((System.UInt16)val)).ToInt32(null);
788
wmiValue = ((
IConvertible
)((System.SByte)val)).ToInt16(null);
828
wmiValue = ((
IConvertible
)((System.Char)val)).ToInt16(null);
System.Runtime.Serialization (8)
System\Runtime\Serialization\CodeGenerator.cs (2)
1054
Ldc(((
IConvertible
)o).ToType(Enum.GetUnderlyingType(valueType), null));
1070
Ldc(((
IConvertible
)o).ToInt32(CultureInfo.InvariantCulture));
System\Runtime\Serialization\EnumDataContract.cs (4)
322
tempValues.Add((long)((
IConvertible
)enumValue).ToUInt64(null));
324
tempValues.Add(((
IConvertible
)enumValue).ToInt64(null));
336
long longValue = IsULong ? (long)((
IConvertible
)value).ToUInt64(null) : ((
IConvertible
)value).ToInt64(null);
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (2)
57
jsonWriter.WriteUnsignedLong(((
IConvertible
)obj).ToUInt64(null));
61
jsonWriter.WriteLong(((
IConvertible
)obj).ToInt64(null));
System.ServiceModel (2)
System\ServiceModel\Dispatcher\CodeGenerator.cs (2)
434
Ldc(((
IConvertible
)o).ToType(Enum.GetUnderlyingType(valueType), null));
450
Ldc(((
IConvertible
)o).ToInt32(CultureInfo.InvariantCulture));
System.Web.Extensions (4)
Script\Serialization\JavaScriptSerializer.cs (2)
466
IConvertible
convertible = o as
IConvertible
;
Script\Services\WebServiceEnumData.cs (2)
73
this.values[i] = (long)((
IConvertible
)enumValue).ToUInt64(CultureInfo.InvariantCulture);
76
this.values[i] = ((
IConvertible
)enumValue).ToInt64(CultureInfo.InvariantCulture);
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Binding.cs (4)
683
if (!(cevent.Value is System.DBNull) && cevent.Value != null && cevent.DesiredType != null && !cevent.DesiredType.IsInstanceOfType(cevent.Value) && (cevent.Value is
IConvertible
)) {
698
if (!(cevent.Value is System.DBNull) && cevent.DesiredType != null && !cevent.DesiredType.IsInstanceOfType(cevent.Value) && (cevent.Value is
IConvertible
)) {
751
if (value is
IConvertible
) {
822
if (value is
IConvertible
) {
winforms\Managed\System\WinForms\Formatter.cs (2)
186
else if (value is
IConvertible
) {
336
else if (value is
IConvertible
) {
System.Workflow.Activities (6)
Rules\Executor.cs (6)
879
converted = ((
IConvertible
)c).ToType(resultType, CultureInfo.CurrentCulture);
894
converted = ((
IConvertible
)f).ToType(resultType, CultureInfo.CurrentCulture);
909
converted = ((
IConvertible
)d).ToType(resultType, CultureInfo.CurrentCulture);
924
converted = ((
IConvertible
)d).ToType(resultType, CultureInfo.CurrentCulture);
932
IConvertible
convert = operandValue as
IConvertible
;
System.Workflow.ComponentModel (5)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (5)
1161
if (defaultValueAttr.Value is
IConvertible
&& value is
IConvertible
&& object.Equals(Convert.ChangeType(defaultValueAttr.Value, property.PropertyType, CultureInfo.InvariantCulture), Convert.ChangeType(value, property.PropertyType, CultureInfo.InvariantCulture)))
1184
|| typeof(Delegate).IsAssignableFrom(valueType) || typeof(
IConvertible
).IsAssignableFrom(valueType)
1285
else if (typeof(
IConvertible
).IsAssignableFrom(propertyType))
1754
else if (typeof(
IConvertible
).IsAssignableFrom(type))
System.Xml (7)
System\Xml\Serialization\CodeExporter.cs (4)
282
return ((
IConvertible
)value).ToInt16(null);
285
return ((
IConvertible
)value).ToInt32(null);
288
return ((
IConvertible
)value).ToInt64(null);
291
return ((
IConvertible
)value).ToDecimal(null);
System\Xml\Serialization\CodeGenerator.cs (2)
1050
Ldc(((
IConvertible
)o).ToType(Enum.GetUnderlyingType(valueType), null));
1064
Ldc(((
IConvertible
)o).ToInt32(CultureInfo.InvariantCulture));
System\Xml\Serialization\Models.cs (1)
366
return new ConstantModel(fieldInfo, ((
IConvertible
)fieldInfo.GetValue(null)).ToInt64(null));