using System.Reflection.Emit;
using System.Globalization;
using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
using System.Diagnostics.SymbolStore;
namespace System.Reflection.Emit {
+#if NET_2_0
+ [ComVisible (true)]
+ [ClassInterfaceAttribute (ClassInterfaceType.None)]
+ [ComDefaultInterfaceAttribute (typeof (_LocalBuilder))]
+#endif
#if NET_2_0
public sealed class LocalBuilder : LocalVariableInfo {
#else
#endif
internal ILGenerator ilgen;
+ int startOffset;
+ int endOffset;
internal LocalBuilder (Type t, ILGenerator ilgen)
{
public void SetLocalSymInfo (string lname, int startOffset, int endOffset)
{
- // nop
+ name = lname;
+ this.startOffset = startOffset;
+ this.endOffset = endOffset;
}
public void SetLocalSymInfo (string lname)
}
}
#endif
+
+ internal string Name {
+ get { return name; }
+ }
+
+ internal int StartOffset {
+ get { return startOffset; }
+ }
+
+ internal int EndOffset {
+ get { return endOffset; }
+ }
}
}