Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System / compmod / system / codedom / CodeGotoStatement.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="CodeGotoStatement.cs" company="Microsoft">
3 // 
4 // <OWNER>Microsoft</OWNER>
5 //     Copyright (c) Microsoft Corporation.  All rights reserved.
6 // </copyright>                                                                
7 //------------------------------------------------------------------------------
8
9 namespace System.CodeDom {
10
11     using System.Diagnostics;
12     using System;
13     using Microsoft.Win32;
14     using System.Collections;
15     using System.Runtime.InteropServices;
16
17     /// <devdoc>
18     ///    <para>[To be supplied.]</para>
19     /// </devdoc>
20     [
21         ClassInterface(ClassInterfaceType.AutoDispatch),
22         ComVisible(true),
23         Serializable,
24     ]
25     public class CodeGotoStatement : CodeStatement {
26         private string label;
27
28         public CodeGotoStatement() {
29         }
30         
31         public CodeGotoStatement(string label) {
32             Label = label;
33         }
34
35         /// <devdoc>
36         ///    <para>[To be supplied.]</para>
37         /// </devdoc>
38         public string Label {
39             get {
40                 return label;
41             }
42             set {
43                 if (String.IsNullOrEmpty(value))
44                     throw new ArgumentNullException("value");
45                     
46                 this.label = value;
47             }
48         }
49     }
50 }