2001-08-24 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System.Runtime.Serialization / SerializationInfo.cs
1 //
2 // System.Runtime.Serialization.SerializationInfo.cs
3 //
4 // Author:
5 //   Miguel de Icaza (miguel@ximian.com)
6 //
7 // (C) Ximian, Inc.  http://www.ximian.com
8 //
9 // TODO: This is just a skeleton to get corlib to compile.
10 //
11
12 namespace System.Runtime.Serialization {
13
14         public sealed class SerializationInfo {
15                 Type type;
16                 IFormatterConverter converter;
17                 
18                 public SerializationInfo (Type type, IFormatterConverter converter)
19                 {
20                         this.type = type;
21                         this.converter = converter;
22                 }
23                 
24                 public string AssemblyName {
25                         get {
26                                 return "TODO: IMPLEMENT ME";
27                         }
28                         
29                         set {
30                         }
31                 }
32                 
33                 public string FullTypeName {
34                         get {
35                                 return "TODO: IMLEMENT ME";
36                         }
37                         
38                         set {
39                         }
40                 }
41                 
42                 
43                 public int MemberCount {
44                         get {
45                                 return 0;
46                         }
47                 }
48
49                 //Public Instance Methods
50 #region TODO: Implement these
51                 public void AddValue(string name, short value){}
52             public void AddValue(string name, UInt16 value){}
53             public void AddValue(string name, int value){}
54             public void AddValue(string name, byte value){}
55             public void AddValue(string name, bool value){}
56             public void AddValue(string name, char value){}
57             public void AddValue(string name, SByte value){}
58             public void AddValue(string name, double value){}
59             public void AddValue(string name, Decimal value){}
60             public void AddValue(string name, DateTime value){}
61             public void AddValue(string name, float value){}
62             public void AddValue(string name, UInt32 value){}
63             public void AddValue(string name, long value){}
64             public void AddValue(string name, UInt64 value){}
65             public void AddValue(string name, object value){}
66             public void AddValue(string name, object value, Type type){}
67             public bool GetBoolean(string name){return false;}
68             public byte GetByte(string name){return 0;}
69             public char GetChar(string name){return 'x';}
70             public DateTime GetDateTime(string name){return new DateTime();}
71             public Decimal GetDecimal(string name){return new Decimal();}
72             public double GetDouble(string name){return 0;}
73             public System.Runtime.Serialization.SerializationInfoEnumerator GetEnumerator(){return null;}
74             public short GetInt16(string name){return 0;}
75             public int GetInt32(string name){return 0;}
76             public long GetInt64(string name){return 0;}
77             public SByte GetSByte(string name){return new SByte();}
78             public float GetSingle(string name){return 0;}
79             public string GetString(string name){return "";}
80             public UInt16 GetUInt16(string name){return 0;}
81             public UInt32 GetUInt32(string name){return 0;}
82             public UInt64 GetUInt64(string name){return 0;}
83             public object GetValue(string name, Type type){return null;}
84                 public void SetType(Type type){}
85 #endregion TODO
86         }
87 }