ObjectMaterializedEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / ObjectMaterializedEventArgs.cs / 1305376 / ObjectMaterializedEventArgs.cs

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

using System; 
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace System.Data.Objects
{ 
    ///  
    /// EventArgs for the ObjectMaterialized event.
    ///  
    public class ObjectMaterializedEventArgs : EventArgs
    {
        /// 
        /// The object that was materialized. 
        /// 
        private readonly object _entity; 
 
        /// 
        /// Constructs new arguments for the ObjectMaterialized event. 
        /// 
        /// The object that has been materialized.
        internal ObjectMaterializedEventArgs(object entity)
        { 
            _entity = entity;
        } 
 
        /// 
        /// The object that was materialized. 
        /// 
        public object Entity
        {
            get { return _entity; } 
        }
    } 
 
    /// 
    /// Delegate for the ObjectMaterialized event. 
    /// 
    /// The ObjectContext responsable for materializing the object.
    /// EventArgs containing a reference to the materialized object.
    public delegate void ObjectMaterializedEventHandler(object sender, ObjectMaterializedEventArgs e); 
}

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