ReadingWritingEntityEventArgs.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 / DataWeb / Client / System / Data / Services / Client / ReadingWritingEntityEventArgs.cs / 1305376 / ReadingWritingEntityEventArgs.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
// Event args for the event fired during reading or writing of
// an entity serialization/deserialization 
//  
//---------------------------------------------------------------------
 
namespace System.Data.Services.Client
{
    using System;
    using System.Diagnostics; 
    using System.Xml.Linq;
 
    ///  
    /// Event args for the event fired during reading or writing of
    /// an entity serialization/deserialization 
    /// 
    public sealed class ReadingWritingEntityEventArgs : EventArgs
    {
        /// The entity being (de)serialized 
        private object entity;
 
        /// The ATOM entry data to/from the network 
        private XElement data;
 
        /// 
        /// Constructor
        /// 
        /// The entity being (de)serialized 
        /// The ATOM entry data to/from the network
        internal ReadingWritingEntityEventArgs(object entity, XElement data) 
        { 
            this.entity = entity;
            this.data = data; 
        }

        /// The entity being (de)serialized
        public object Entity 
        {
            get { return this.entity; } 
        } 

        /// The ATOM entry data to/from the network 
        public XElement Data
        {
            [DebuggerStepThrough]
            get { return this.data; } 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
// Event args for the event fired during reading or writing of
// an entity serialization/deserialization 
//  
//---------------------------------------------------------------------
 
namespace System.Data.Services.Client
{
    using System;
    using System.Diagnostics; 
    using System.Xml.Linq;
 
    ///  
    /// Event args for the event fired during reading or writing of
    /// an entity serialization/deserialization 
    /// 
    public sealed class ReadingWritingEntityEventArgs : EventArgs
    {
        /// The entity being (de)serialized 
        private object entity;
 
        /// The ATOM entry data to/from the network 
        private XElement data;
 
        /// 
        /// Constructor
        /// 
        /// The entity being (de)serialized 
        /// The ATOM entry data to/from the network
        internal ReadingWritingEntityEventArgs(object entity, XElement data) 
        { 
            this.entity = entity;
            this.data = data; 
        }

        /// The entity being (de)serialized
        public object Entity 
        {
            get { return this.entity; } 
        } 

        /// The ATOM entry data to/from the network 
        public XElement Data
        {
            [DebuggerStepThrough]
            get { return this.data; } 
        }
    } 
} 

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