Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System / compmod / system / codedom / CodeSnippetExpression.cs
blob18e87f7c61d0f7f168f06f75fc2b8a086625ff7b
1 //------------------------------------------------------------------------------
2 // <copyright file="CodeSnippetExpression.cs" company="Microsoft">
3 //
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // </copyright>
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom {
11 using System.Diagnostics;
12 using System;
13 using Microsoft.Win32;
14 using System.Collections;
15 using System.Runtime.InteropServices;
17 /// <devdoc>
18 /// <para>
19 /// Represents a snippet expression.
20 /// </para>
21 /// </devdoc>
23 ClassInterface(ClassInterfaceType.AutoDispatch),
24 ComVisible(true),
25 Serializable,
27 public class CodeSnippetExpression : CodeExpression {
28 private string value;
30 /// <devdoc>
31 /// <para>
32 /// Initializes a new instance of <see cref='System.CodeDom.CodeSnippetExpression'/>.
33 /// </para>
34 /// </devdoc>
35 public CodeSnippetExpression() {
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;
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;
57 set {
58 this.value = value;