1 //------------------------------------------------------------------------------
2 // <copyright file="CodeAttributeArgument.cs" company="Microsoft">
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom {
11 using System.Diagnostics;
13 using Microsoft.Win32;
14 using System.Collections;
15 using System.Runtime.InteropServices;
19 /// Represents an argument for use in a custom attribute declaration.
23 ClassInterface(ClassInterfaceType.AutoDispatch),
27 public class CodeAttributeArgument {
29 private CodeExpression value;
33 /// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeArgument'/>.
36 public CodeAttributeArgument() {
41 /// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeArgument'/> using the specified value.
44 public CodeAttributeArgument(CodeExpression value) {
50 /// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeArgument'/> using the specified name and
54 public CodeAttributeArgument(string name, CodeExpression value) {
61 /// The name of the attribute.
66 return (name == null) ? string.Empty : name;
75 /// The argument for the attribute.
78 public CodeExpression Value {