示例#1
0
 /// <summary>
 /// <para>Declare a new local of the given type in the current method.</para>
 /// <para>
 /// Name is optional, and only provided for debugging purposes.  It has no
 /// effect on emitted IL.
 /// </para>
 /// <para>
 /// Be aware that each local takes some space on the stack, inefficient use of locals
 /// could lead to StackOverflowExceptions at runtime.
 /// </para>
 /// </summary>
 public Local DeclareLocal(Type type, string name = null)
 {
     return(InnerEmit.DeclareLocal(type, name));
 }
示例#2
0
 /// <summary>
 /// <para>Declare a new local of the given type in the current method.</para>
 /// <para>
 /// Name is optional, and only provided for debugging purposes.  It has no
 /// effect on emitted IL.
 /// </para>
 /// <para>
 /// Be aware that each local takes some space on the stack, inefficient use of locals
 /// could lead to StackOverflowExceptions at runtime.
 /// </para>
 /// </summary>
 public Emit DeclareLocal(Type type, out Local local, string name = null)
 {
     InnerEmit.DeclareLocal(type, out local, name);
     return(this);
 }
示例#3
0
 /// <summary>
 /// <para>Declare a new local of the given type in the current method.</para>
 /// <para>
 /// Name is optional, and only provided for debugging purposes.  It has no
 /// effect on emitted IL.
 /// </para>
 /// <para>
 /// Be aware that each local takes some space on the stack, inefficient use of locals
 /// could lead to StackOverflowExceptions at runtime.
 /// </para>
 /// </summary>
 public Local DeclareLocal <Type>(string name = null)
 {
     return(InnerEmit.DeclareLocal <Type>(name));
 }