Declares a new Label. This is just a token and does not yet represent any particular location within the stream.
[Visual Basic] Overridable Public Function DefineLabel() As Label [C#] public virtual Label DefineLabel(); [C++] public: virtual Label DefineLabel(); [JScript] public function DefineLabel() : Label;
Returns a new label that can be used as a token for branching.
In order to set the position of the label within the stream, you must call MarkLabel.
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace