EntityDescriptor.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / EntityDescriptor.cs / 1 / EntityDescriptor.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
// represents the object and state
//  
//--------------------------------------------------------------------- 

namespace System.Data.Services.Client 
{
    /// 
    /// represents the cached entity
    ///  
    public sealed class EntityDescriptor : Descriptor
    { 
        /// entity 
        private readonly object entity;
 
        /// entity tag
        private readonly string etag;

        ///  
        /// constructor
        ///  
        /// entity 
        /// etag
        /// entity state 
        internal EntityDescriptor(object entity, string etag, EntityStates state) : base(state)
        {
            this.entity = entity;
            this.etag = etag ?? String.Empty; 
        }
 
        /// entity 
        public object Entity
        { 
            get { return this.entity; }
        }

        /// etag 
        public string ETag
        { 
            get { return this.etag; } 
        }
    } 
}

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

namespace System.Data.Services.Client 
{
    /// 
    /// represents the cached entity
    ///  
    public sealed class EntityDescriptor : Descriptor
    { 
        /// entity 
        private readonly object entity;
 
        /// entity tag
        private readonly string etag;

        ///  
        /// constructor
        ///  
        /// entity 
        /// etag
        /// entity state 
        internal EntityDescriptor(object entity, string etag, EntityStates state) : base(state)
        {
            this.entity = entity;
            this.etag = etag ?? String.Empty; 
        }
 
        /// entity 
        public object Entity
        { 
            get { return this.entity; }
        }

        /// etag 
        public string ETag
        { 
            get { return this.etag; } 
        }
    } 
}

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