2002-05-01 Ravi Pratap <ravi@ximian.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         [MonoTODO]
15         public sealed class SerializationInfo {
16                 Type type;
17                 [CLSCompliant(false)] IFormatterConverter converter;
18                 
19                 [CLSCompliant(false)]
20                 public SerializationInfo (Type type, IFormatterConverter converter)
21                 {
22                         this.type = type;
23                         this.converter = converter;
24                 }
25
26                 [MonoTODO]
27                 public string AssemblyName {
28                         get {
29                                 return "TODO: IMPLEMENT ME";
30                         }
31                         
32                         set {
33                         }
34                 }
35
36                 [MonoTODO]
37                 public string FullTypeName {
38                         get {
39                                 return "TODO: IMLEMENT ME";
40                         }
41                         
42                         set {
43                         }
44                 }
45                 
46                 
47                 public int MemberCount {
48                         get {
49                                 return 0;
50                         }
51                 }
52
53                 //Public Instance Methods
54 #region TODO: Implement these
55                 [CLSCompliant(false)][MonoTODO]
56                 public void AddValue(string name, short value){}
57                 [CLSCompliant(false)][MonoTODO]
58                 public void AddValue(string name, UInt16 value){}
59                 [MonoTODO]      
60                 public void AddValue(string name, int value){}
61                 [MonoTODO]      
62                 public void AddValue(string name, byte value){}
63                 [MonoTODO]
64                 public void AddValue(string name, bool value){}
65                 [MonoTODO]
66                 public void AddValue(string name, char value){}
67                 [CLSCompliant(false)][MonoTODO]
68                 public void AddValue(string name, SByte value){}
69                 [MonoTODO]      
70                 public void AddValue(string name, double value){}
71                 [MonoTODO]
72                 public void AddValue(string name, Decimal value){}
73                 [MonoTODO]
74                 public void AddValue(string name, DateTime value){}
75                 [MonoTODO]
76                 public void AddValue(string name, float value){}
77                 [CLSCompliant(false)][MonoTODO]
78                 public void AddValue(string name, UInt32 value){}
79                 [MonoTODO]
80                 public void AddValue(string name, long value){}
81                 [CLSCompliant(false)][MonoTODO]
82                 public void AddValue(string name, UInt64 value){}
83                 [MonoTODO]
84                 public void AddValue(string name, object value){}
85                 [MonoTODO]
86                 public void AddValue(string name, object value, Type type){}
87                 [MonoTODO]
88                 public bool GetBoolean(string name){return false;}
89                 [MonoTODO]
90                 public byte GetByte(string name){return 0;}
91                 [MonoTODO]
92                 public char GetChar(string name){return 'x';}
93                 [MonoTODO]
94                 public DateTime GetDateTime(string name){return new DateTime();}
95                 [MonoTODO]
96                 public Decimal GetDecimal(string name){return new Decimal();}
97                 [MonoTODO]
98                 public double GetDouble(string name){return 0;}
99                 [MonoTODO]
100                 public System.Runtime.Serialization.SerializationInfoEnumerator GetEnumerator(){return null;}
101                 [MonoTODO]
102                 public short GetInt16(string name){return 0;}
103                 [MonoTODO]
104                 public int GetInt32(string name){return 0;}
105                 [MonoTODO]
106                 public long GetInt64(string name){return 0;}
107                 [CLSCompliant(false)][MonoTODO]
108                 public SByte GetSByte(string name){return new SByte();}
109                 [MonoTODO]
110                 public float GetSingle(string name){return 0;}
111                 [MonoTODO]
112                 public string GetString(string name){return "";}
113                 [CLSCompliant(false)][MonoTODO]
114                 public UInt16 GetUInt16(string name){return 0;}
115                 [CLSCompliant(false)][MonoTODO]
116                 public UInt32 GetUInt32(string name){return 0;}
117                 [CLSCompliant(false)][MonoTODO]
118                 public UInt64 GetUInt64(string name){return 0;}
119                 [MonoTODO]
120                 public object GetValue(string name, Type type){return null;}
121                 [MonoTODO]
122                 public void SetType(Type type){}
123 #endregion TODO
124         }
125 }