See Also: CodeLabeledStatement Members
System.CodeDom.CodeLabeledStatement represents a label and optionally, an associated statement. A label can be used to indicate the target of a System.CodeDom.CodeGotoStatement.
The CodeLabeledStatement.Statement property is optional. To create only a label, leave the CodeLabeledStatement.Statement property uninitialized.
Not all languages support goto statements and labels, so you should test wheter a code generator supports goto statements and labels by calling the System.CodeDom.Compiler.ICodeGenerator.Supports(System.CodeDom.Compiler.GeneratorSupport) method with the System.CodeDom.Compiler.GeneratorSupport.GotoStatements flag.