Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IFormatterConverter.cs « System.Runtime.Serialization « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b902ec339a5c669d4eb09209bc63bac0ed3b042e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// System.Runtime.Serialization.IFormatterConverter.cs
//
// Author:
//   Miguel de Icaza (miguel@ximian.com)
//
// (C) Ximian, Inc.  http://www.ximian.com
//
//

namespace System.Runtime.Serialization {
	[CLSCompliant(false)]
	public interface IFormatterConverter {
		object Convert (object o, Type t);
		object Convert (object o, TypeCode tc);
		
		bool        ToBoolean  (object o);
		byte        ToByte     (object o);
		char        ToChar     (object o);
		DateTime    ToDateTime (object o);
		Decimal     ToDecimal  (object o);
		double      ToDouble   (object o);
		Int16       ToInt16    (object o);
		Int32       ToInt32    (object o);
		Int64       ToInt64    (object o);
		sbyte       ToSByte    (object o);
		float       ToSingle   (object o);
		string      ToString   (object o);
		UInt16      ToUInt16   (object o);
		UInt32      ToUInt32   (object o);
		UInt64      ToUInt64   (object o);
	}
}