mscorlib(4.0.0.0) API with additions
IFormatterConverter.cs
1
using
System
.
Runtime
.
InteropServices
;
2
3
namespace
System.Runtime.Serialization
4
{
6
[CLSCompliant(
false
)]
7
[ComVisible(
true
)]
8
public
interface
IFormatterConverter
9
{
14
object
Convert
(
object
value,
Type
type);
15
20
object
Convert
(
object
value,
TypeCode
typeCode);
21
25
bool
ToBoolean
(
object
value);
26
30
char
ToChar
(
object
value);
31
35
sbyte
ToSByte
(
object
value);
36
40
byte
ToByte
(
object
value);
41
45
short
ToInt16
(
object
value);
46
50
ushort
ToUInt16
(
object
value);
51
55
int
ToInt32
(
object
value);
56
60
uint
ToUInt32
(
object
value);
61
65
long
ToInt64
(
object
value);
66
70
ulong
ToUInt64
(
object
value);
71
75
float
ToSingle
(
object
value);
76
80
double
ToDouble
(
object
value);
81
85
decimal
ToDecimal
(
object
value);
86
90
DateTime
ToDateTime
(
object
value);
91
95
string
ToString
(
object
value);
96
}
97
}
System.Runtime.Serialization.IFormatterConverter
Provides the connection between an instance of T:System.Runtime.Serialization.SerializationInfo and t...
Definition:
IFormatterConverter.cs:8
System.Runtime.Serialization.IFormatterConverter.ToDateTime
DateTime ToDateTime(object value)
Converts a value to a T:System.DateTime.
System.Runtime.Serialization.IFormatterConverter.ToBoolean
bool ToBoolean(object value)
Converts a value to a T:System.Boolean.
System.Runtime.InteropServices
Definition:
_Activator.cs:1
System.TypeCode
TypeCode
Specifies the type of an object.
Definition:
TypeCode.cs:9
System.Runtime.Serialization.IFormatterConverter.ToUInt16
ushort ToUInt16(object value)
Converts a value to a 16-bit unsigned integer.
System.Runtime
Definition:
AssemblyTargetedPatchBandAttribute.cs:1
System
Definition:
__Canon.cs:3
System.Runtime.Serialization.IFormatterConverter.ToSByte
sbyte ToSByte(object value)
Converts a value to a T:System.SByte.
System.DateTime
Represents an instant in time, typically expressed as a date and time of day. To browse the ....
Definition:
DateTime.cs:13
System.Runtime.Serialization.IFormatterConverter.ToDouble
double ToDouble(object value)
Converts a value to a double-precision floating-point number.
System.Runtime.Serialization.IFormatterConverter.ToUInt64
ulong ToUInt64(object value)
Converts a value to a 64-bit unsigned integer.
System.Runtime.Serialization.IFormatterConverter.ToInt64
long ToInt64(object value)
Converts a value to a 64-bit signed integer.
System.Runtime.Serialization.IFormatterConverter.ToString
string ToString(object value)
Converts a value to a T:System.String.
System.Runtime.Serialization.IFormatterConverter.ToSingle
float ToSingle(object value)
Converts a value to a single-precision floating-point number.
System.Runtime.Serialization.IFormatterConverter.ToInt16
short ToInt16(object value)
Converts a value to a 16-bit signed integer.
System.Runtime.Serialization
Definition:
DeserializationEventHandler.cs:1
System.Type
Represents type declarations: class types, interface types, array types, value types,...
Definition:
Type.cs:18
System.Runtime.Serialization.IFormatterConverter.ToUInt32
uint ToUInt32(object value)
Converts a value to a 32-bit unsigned integer.
System.Runtime.Serialization.IFormatterConverter.ToChar
char ToChar(object value)
Converts a value to a Unicode character.
System.Runtime.Serialization.IFormatterConverter.ToDecimal
decimal ToDecimal(object value)
Converts a value to a T:System.Decimal.
System.Runtime.Serialization.IFormatterConverter.Convert
object Convert(object value, Type type)
Converts a value to the given T:System.Type.
System.Runtime.Serialization.IFormatterConverter.ToInt32
int ToInt32(object value)
Converts a value to a 32-bit signed integer.
System.Runtime.Serialization.IFormatterConverter.ToByte
byte ToByte(object value)
Converts a value to an 8-bit unsigned integer.
All cs
System.Runtime.Serialization
IFormatterConverter.cs
Generated by
1.8.15