//------------------------------------------------------------------------------ // // // [....] // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; /// /// /// Represents an argument for use in a custom attribute declaration. /// /// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeAttributeArgument { private string name; private CodeExpression value; /// /// /// Initializes a new instance of . /// /// public CodeAttributeArgument() { } /// /// /// Initializes a new instance of using the specified value. /// /// public CodeAttributeArgument(CodeExpression value) { Value = value; } /// /// /// Initializes a new instance of using the specified name and /// value. /// /// public CodeAttributeArgument(string name, CodeExpression value) { Name = name; Value = value; } /// /// /// The name of the attribute. /// /// public string Name { get { return (name == null) ? string.Empty : name; } set { name = value; } } /// /// /// The argument for the attribute. /// /// public CodeExpression Value { get { return value; } set { this.value = value; } } } }