Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System / compmod / system / codedom / CodeSnippetExpression.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="CodeSnippetExpression.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>
19     ///       Represents a snippet expression.
20     ///    </para>
21     /// </devdoc>
22     [
23         ClassInterface(ClassInterfaceType.AutoDispatch),
24         ComVisible(true),
25         Serializable,
26     ]
27     public class CodeSnippetExpression : CodeExpression {
28         private string value;
29
30         /// <devdoc>
31         ///    <para>
32         ///       Initializes a new instance of <see cref='System.CodeDom.CodeSnippetExpression'/>.
33         ///    </para>
34         /// </devdoc>
35         public CodeSnippetExpression() {
36         }
37         
38         /// <devdoc>
39         ///    <para>
40         ///       Initializes a new instance of <see cref='System.CodeDom.CodeSnippetExpression'/> using the specified snippet
41         ///       expression.
42         ///    </para>
43         /// </devdoc>
44         public CodeSnippetExpression(string value) {
45             Value = value;
46         }
47
48         /// <devdoc>
49         ///    <para>
50         ///       Gets or sets the snippet expression.
51         ///    </para>
52         /// </devdoc>
53         public string Value {
54             get {
55                 return (value == null) ? string.Empty : value;
56             }
57             set {
58                 this.value = value;
59             }
60         }
61     }
62 }