Name
IFormatterConverter
Synopsis
This interface defines the basic
methods that
convert serializable data into base class types. These conversion
methods are used to parse the data contained in
SerializationInfo
instances.
public interface IFormatterConverter { // Public Instance Methods public object Convert(objectvalue
, Typetype
); public object Convert(objectvalue
, TypeCodetypeCode
); public bool ToBoolean(objectvalue
); public byte ToByte(objectvalue
); public char ToChar(objectvalue
); public DateTime ToDateTime(objectvalue
); public decimal ToDecimal(objectvalue
); public double ToDouble(objectvalue
); public short ToInt16(objectvalue
); public int ToInt32(objectvalue
); public long ToInt64(objectvalue
); public sbyte ToSByte(objectvalue
); public float ToSingle(objectvalue
); public string ToString(objectvalue
); public ushort ToUInt16(objectvalue
); public uint ToUInt32(objectvalue
); public ulong ToUInt64(objectvalue
); }
Implemented By
FormatterConverter
Passed To
SerializationInfo.SerializationInfo( )
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.