CellRelation.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 / DataEntity / System / Data / Map / ViewGeneration / Validation / CellRelation.cs / 1305376 / CellRelation.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 

 
using System.Data.Common.Utils;
using System.Collections.Generic;

namespace System.Data.Mapping.ViewGeneration.Validation 
{
    // Abstract class representing a relation signature for a cell query 
    internal abstract class CellRelation : InternalBase 
    {
 
        #region Constructor
        // effects: Given a cell number (for debugging purposes), creates a
        // cell relation
        protected CellRelation(int cellNumber) 
        {
            m_cellNumber = cellNumber; 
        } 
        #endregion
 
        #region Fields
        internal int m_cellNumber; // The number of the cell for which this
        // relation was made (for debugging)
        #endregion 

        #region Properties 
        internal int CellNumber 
        {
            get { return m_cellNumber; } 
        }
        #endregion

        #region Methods 

        protected abstract int GetHash(); 
 
        #endregion
    } 
}

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

 
using System.Data.Common.Utils;
using System.Collections.Generic;

namespace System.Data.Mapping.ViewGeneration.Validation 
{
    // Abstract class representing a relation signature for a cell query 
    internal abstract class CellRelation : InternalBase 
    {
 
        #region Constructor
        // effects: Given a cell number (for debugging purposes), creates a
        // cell relation
        protected CellRelation(int cellNumber) 
        {
            m_cellNumber = cellNumber; 
        } 
        #endregion
 
        #region Fields
        internal int m_cellNumber; // The number of the cell for which this
        // relation was made (for debugging)
        #endregion 

        #region Properties 
        internal int CellNumber 
        {
            get { return m_cellNumber; } 
        }
        #endregion

        #region Methods 

        protected abstract int GetHash(); 
 
        #endregion
    } 
}

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