copied mono-api-diff.cs from mono-2-2 branch so new patch can be applied and history...
[mono.git] / mcs / class / corlib / System.Reflection.Emit / LocalBuilder.cs
index ae37eedcb4c26480ef746c4ba19b9e55f97befef..2c999b791429389631d3e08cf2e957fe81edf892 100644 (file)
@@ -42,30 +42,15 @@ using System.Runtime.InteropServices;
 using System.Diagnostics.SymbolStore;
 
 namespace System.Reflection.Emit {
-#if NET_2_0
        [ComVisible (true)]
        [ComDefaultInterface (typeof (_LocalBuilder))]
-#endif
        [ClassInterface (ClassInterfaceType.None)]
-#if NET_2_0
        public sealed class LocalBuilder : LocalVariableInfo, _LocalBuilder {
-#else
-       public sealed class LocalBuilder : _LocalBuilder {
-#endif
 
-#if NET_2_0
                // Some fields are already defined in LocalVariableInfo
                #region Sync with reflection.h
                private string name;
                #endregion
-#else
-               #region Sync with reflection.h
-               private Type type;
-               internal bool is_pinned;
-               internal ushort position;
-               private string name;
-               #endregion
-#endif
                
                internal ILGenerator ilgen;
                int startOffset;
@@ -77,29 +62,25 @@ namespace System.Reflection.Emit {
                        this.ilgen = ilgen;
                }
 
-               public void SetLocalSymInfo (string lname, int startOffset, int endOffset)
+               public void SetLocalSymInfo (string name, int startOffset, int endOffset)
                {
-                       name = lname;
+                       this.name = name;
                        this.startOffset = startOffset;
                        this.endOffset = endOffset;
                }
 
-               public void SetLocalSymInfo (string lname)
+               public void SetLocalSymInfo (string name)
                {
-                       SetLocalSymInfo (lname, 0, 0);
+                       SetLocalSymInfo (name, 0, 0);
                }
 
-#if NET_2_0
-               override
-#endif
-               public Type LocalType
+               public override Type LocalType
                {
                        get {
                                return type;
                        }
                }
 
-#if NET_2_0
                public override bool IsPinned
                {
                        get {
@@ -113,7 +94,6 @@ namespace System.Reflection.Emit {
                                return position;
                        }
                }
-#endif
 
                internal static int Mono_GetLocalIndex (LocalBuilder builder)
                {