O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

LocalBuilder

Synopsis

This class represents a dynamically created local variable. Local variables are created for methods and constructors through the ILGenerator object, using the ILGenerator.DeclareLocal().

public sealed class LocalBuilder {
// Public Instance Properties
   public field Type LocalType{get; } 
// Public Instance Methods
   public method void SetLocalSymInfo(string name);  
   public method void SetLocalSymInfo(string name, 
        int startOffset, int endOffset);  
}

Returned By

ILGenerator.DeclareLocal()

Passed To

ILGenerator.{Emit(), EmitWriteLine()}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required