|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Microsoft.CodeDom
{
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Reflection;
using System.Runtime.InteropServices;
/// <devdoc>
/// <para>
/// Represents a
/// snippet member of a class.
/// </para>
/// </devdoc>
[
// ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
// Serializable,
]
public class CodeSnippetTypeMember : CodeTypeMember
{
private string _text;
/// <devdoc>
/// <para>
/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeSnippetTypeMember'/>.
/// </para>
/// </devdoc>
public CodeSnippetTypeMember()
{
}
/// <devdoc>
/// <para>
/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeSnippetTypeMember'/>.
/// </para>
/// </devdoc>
public CodeSnippetTypeMember(string text)
{
Text = text;
}
/// <devdoc>
/// <para>
/// Gets or sets the code for the class member.
/// </para>
/// </devdoc>
public string Text
{
get
{
return (_text == null) ? string.Empty : _text;
}
set
{
_text = value;
}
}
}
}
|