ReachBasicContext.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Print / Reach / Serialization / manager / ReachBasicContext.cs / 1 / ReachBasicContext.cs

                            /*++ 

    Copyright (C) 2004- 2005 Microsoft Corporation
    All rights reserved.
 
    Module Name:
        ReachBasicContext.cs 
 
    Abstract:
        The file contains the definition of a class defining a context 
        object which define the basic properties defining an object.

    Author:
        [....] ([....]) 1-December-2004 

    Revision History: 
--*/ 
using System;
using System.Collections; 
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection; 
using System.Xml;
using System.IO; 
using System.Security; 
using System.Security.Permissions;
using System.ComponentModel.Design.Serialization; 
using System.Windows.Xps.Packaging;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Markup; 

namespace System.Windows.Xps.Serialization 
{ 
    internal abstract class BasicContext
    { 
        #region Constructor

        /// 
        /// Instantiates a BasicContext 
        /// 
        public 
        BasicContext( 
            string name,
            string prefix) 
        {
            this._name   = name;
            this._prefix = prefix;
        } 

        ///  
        /// Instantiates a BasicContext with 
        /// null Data. Data can be initialized
        /// later. 
        /// 
        public
        BasicContext()
        { 
            Initialize();
        } 
 
        #endregion Constructor
 
        #region Public Properties

        /// 
        /// Query/Set the Name of the context 
        /// 
        public 
        string 
        Name
        { 
            get
            {
                return _name;
            } 

            set 
            { 
                _name = value;
            } 
        }

        /// 
        /// Query/Set the prefix of the context 
        /// 
        public 
        string 
        Prefix
        { 
            get
            {
                return _prefix;
            } 

            set 
            { 
                _prefix = value;
            } 
        }

        #endregion Public Properties
 

        #region Public Methods 
 
        /// 
        /// Initialize the internal Properties 
        /// 
        public
        void
        Initialize() 
        {
            _name   = null; 
            _prefix = null; 
        }
 
        /// 
        /// Clears the internal properties
        /// 
        public 
        virtual
        void 
        Clear() 
        {
            _name   = null; 
            _prefix = null;
        }

        #endregion Public Methods 

        #region Private Data 
 
        private string _name;
        private string _prefix; 

        #endregion Private Data
    };
} 

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