ReferencedAssembly.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 / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / Compilation / WCFModel / ReferencedAssembly.cs / 1 / ReferencedAssembly.cs

                            //------------------------------------------------------------------------------ 
// 
//   Copyright (C) Microsoft Corporation. All Rights Reserved.
// 
//----------------------------------------------------------------------------- 

 
using System; 
using System.Collections.Generic;
using System.IO; 
using System.Text;
using System.Xml;
using System.Xml.Schema;
using XmlSerialization = System.Xml.Serialization; 

#if WEB_EXTENSIONS_CODE 
namespace System.Web.Compilation.WCFModel 
#else
namespace Microsoft.VSDesigner.WCFModel 
#endif
{
    /// 
    ///  
    /// 
#if WEB_EXTENSIONS_CODE 
    internal class ReferencedAssembly 
#else
    [CLSCompliant(true)] 
    public class ReferencedAssembly
#endif
    {
        private string m_AssemblyName; 

        ///  
        /// Constructor 
        /// 
        public ReferencedAssembly() { 
            m_AssemblyName = String.Empty;
        }

        ///  
        /// Constructor
        ///  
        public ReferencedAssembly(string assemblyName) { 
            if (assemblyName == null) {
                throw new ArgumentNullException("assemblyName"); 
            }

            m_AssemblyName = assemblyName;
        } 

        ///  
        /// assembly name 
        /// 
        ///  
        /// 
        [XmlSerialization.XmlAttribute()]
        public string AssemblyName {
            get { 
                return m_AssemblyName;
            } 
            set { 
                m_AssemblyName = value;
            } 
        }
    }
}
 

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

 
using System; 
using System.Collections.Generic;
using System.IO; 
using System.Text;
using System.Xml;
using System.Xml.Schema;
using XmlSerialization = System.Xml.Serialization; 

#if WEB_EXTENSIONS_CODE 
namespace System.Web.Compilation.WCFModel 
#else
namespace Microsoft.VSDesigner.WCFModel 
#endif
{
    /// 
    ///  
    /// 
#if WEB_EXTENSIONS_CODE 
    internal class ReferencedAssembly 
#else
    [CLSCompliant(true)] 
    public class ReferencedAssembly
#endif
    {
        private string m_AssemblyName; 

        ///  
        /// Constructor 
        /// 
        public ReferencedAssembly() { 
            m_AssemblyName = String.Empty;
        }

        ///  
        /// Constructor
        ///  
        public ReferencedAssembly(string assemblyName) { 
            if (assemblyName == null) {
                throw new ArgumentNullException("assemblyName"); 
            }

            m_AssemblyName = assemblyName;
        } 

        ///  
        /// assembly name 
        /// 
        ///  
        /// 
        [XmlSerialization.XmlAttribute()]
        public string AssemblyName {
            get { 
                return m_AssemblyName;
            } 
            set { 
                m_AssemblyName = value;
            } 
        }
    }
}
 

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

                        

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