2004-03-09 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System / RuntimeFieldHandle.cs
index f4536856af983cb60806d8fbf2d81054370f14eb..f8a9e620a9f8a83a2dac53f136e9eb6353d453f0 100755 (executable)
@@ -8,13 +8,13 @@
 //
 
 using System.Runtime.Serialization;
-using System.Globalization;
-
-namespace System {
 
+namespace System
+{
        [MonoTODO]
        [Serializable]
-       public struct RuntimeFieldHandle : ISerializable {
+       public struct RuntimeFieldHandle : ISerializable
+       {
                IntPtr value;
                
                public IntPtr Value {
@@ -33,13 +33,13 @@ namespace System {
                        t = (Type) info.GetValue ("TypeObj", typeof (Type));
 
                        value = t.TypeHandle.Value;
-                       if (value == (IntPtr) 0)
-                               throw new SerializationException (Locale.GetText ("Insufficient state"));
+                       if (value == IntPtr.Zero)
+                               throw new SerializationException (Locale.GetText ("Insufficient state."));
                }
-               
-                public void GetObjectData (SerializationInfo info, StreamingContext context)
-                {
+
+               public void GetObjectData (SerializationInfo info, StreamingContext context)
+               {
                        info.AddValue ("TypeObj", value, value.GetType ());
-                }
+               }
        }
 }