Mono Class Library: System.Reflection.Emit.ILGenerator Overview | MembersSystem.Reflection.Emit.ILGenerator.DefineLabel Method |
Defines a new label, that can be used as a branch target. [Edit]
|
The newly defined label. [Edit]
This method only tells the System.Reflection.Emit.ILGenerator that the given label exists, and that it can be used as a branch target by branch instructions. It doesn't tell the System.Reflection.Emit.ILGenerator where the actual branch target is though, which is done using the ILGenerator.MarkLabel method, This two step approach allows you to jump to code that hasn't been emitted yet. [Edit]
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0