diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/Serialization/IFormatterConverter.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/Serialization/IFormatterConverter.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Runtime/Serialization/IFormatterConverter.cs b/src/mscorlib/src/System/Runtime/Serialization/IFormatterConverter.cs new file mode 100644 index 0000000000..182cc93412 --- /dev/null +++ b/src/mscorlib/src/System/Runtime/Serialization/IFormatterConverter.cs @@ -0,0 +1,40 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +/*============================================================ +** +** +** +** Purpose: The interface provides the connection between an +** instance of SerializationInfo and the formatter-provided +** class which knows how to parse the data inside the +** SerializationInfo. +** +** +============================================================*/ +namespace System.Runtime.Serialization { + using System; + + [CLSCompliant(false)] +[System.Runtime.InteropServices.ComVisible(true)] + public interface IFormatterConverter { + Object Convert(Object value, Type type); + Object Convert(Object value, TypeCode typeCode); + bool ToBoolean(Object value); + char ToChar(Object value); + sbyte ToSByte(Object value); + byte ToByte(Object value); + short ToInt16(Object value); + ushort ToUInt16(Object value); + int ToInt32(Object value); + uint ToUInt32(Object value); + long ToInt64(Object value); + ulong ToUInt64(Object value); + float ToSingle(Object value); + double ToDouble(Object value); + Decimal ToDecimal(Object value); + DateTime ToDateTime(Object value); + String ToString(Object value); + } +} |