XmlFormatExtensionAttribute.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Configuration / XmlFormatExtensionAttribute.cs / 1305376 / XmlFormatExtensionAttribute.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.Services.Configuration { 
 
    using System;
 
    /// 
    /// 
    ///    [To be supplied.]
    ///  
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class XmlFormatExtensionAttribute : Attribute { 
        Type[] types; 
        string name;
        string ns; 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public XmlFormatExtensionAttribute() { 
        } 

        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1) : this(elementName, ns, new Type[] {extensionPoint1}) {
        }
        /// 
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2) : this(elementName, ns, new Type[] {extensionPoint1, extensionPoint2}) { 
        }
        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3) : this(elementName, ns, new Type[] {extensionPoint1, extensionPoint2, extensionPoint3}) { 
        }
        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4) : this(elementName, ns, new Type[] {extensionPoint1, extensionPoint2, extensionPoint3, extensionPoint4}) {
        }

        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type[] extensionPoints) {
            this.name = elementName; 
            this.ns = ns;
            this.types = extensionPoints;
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public Type[] ExtensionPoints { 
            get { return types == null ? new Type[0] : types; }
            set { types = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string Namespace { 
            get { return ns == null ? string.Empty : ns; }
            set { ns = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string ElementName { 
            get { return name == null ? string.Empty : name; }
            set { name = value; }
        }
    } 

} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.Services.Configuration { 
 
    using System;
 
    /// 
    /// 
    ///    [To be supplied.]
    ///  
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class XmlFormatExtensionAttribute : Attribute { 
        Type[] types; 
        string name;
        string ns; 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public XmlFormatExtensionAttribute() { 
        } 

        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1) : this(elementName, ns, new Type[] {extensionPoint1}) {
        }
        /// 
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2) : this(elementName, ns, new Type[] {extensionPoint1, extensionPoint2}) { 
        }
        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3) : this(elementName, ns, new Type[] {extensionPoint1, extensionPoint2, extensionPoint3}) { 
        }
        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4) : this(elementName, ns, new Type[] {extensionPoint1, extensionPoint2, extensionPoint3, extensionPoint4}) {
        }

        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        public XmlFormatExtensionAttribute(string elementName, string ns, Type[] extensionPoints) {
            this.name = elementName; 
            this.ns = ns;
            this.types = extensionPoints;
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public Type[] ExtensionPoints { 
            get { return types == null ? new Type[0] : types; }
            set { types = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string Namespace { 
            get { return ns == null ? string.Empty : ns; }
            set { ns = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string ElementName { 
            get { return name == null ? string.Empty : name; }
            set { name = 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