ReadingWritingEntityEventArgs.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 / ReadingWritingEntityEventArgs.cs / 1 / 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.Net; 
    using System.Linq;
    using System.Xml.Linq; 
    using System.Diagnostics; 

    ///  
    /// 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.Net; 
    using System.Linq;
    using System.Xml.Linq; 
    using System.Diagnostics; 

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