CodeAttributeArgument.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeArgument.cs / 1 / CodeAttributeArgument.cs

                            //------------------------------------------------------------------------------ 
// 
//     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;
            } 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     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;
            } 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK