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 Type LocalType{get; } // Public Instance Methods public void SetLocalSymInfo(stringname
); public void SetLocalSymInfo(stringname
, intstartOffset
, intendOffset
); }
Returned By
ILGenerator.DeclareLocal( )
Passed To
ILGenerator.{Emit( )
, EmitWriteLine( )}
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.