Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceUtility.cs
- DodSequenceMerge.cs
- ImageSourceTypeConverter.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ErrorHandlerModule.cs
- HttpApplication.cs
- ImportFileRequest.cs
- ObjectDataProvider.cs
- IPPacketInformation.cs
- TextWriterTraceListener.cs
- WinEventTracker.cs
- PkcsMisc.cs
- SmtpNegotiateAuthenticationModule.cs
- Mappings.cs
- ParameterToken.cs
- WrappedReader.cs
- NullableBoolConverter.cs
- ScrollPatternIdentifiers.cs
- AccessViolationException.cs
- MachineKeyValidationConverter.cs
- ScriptingWebServicesSectionGroup.cs
- BulletDecorator.cs
- UdpSocketReceiveManager.cs
- TemplateColumn.cs
- TableLayoutPanelDesigner.cs
- QuaternionRotation3D.cs
- PeerNodeAddress.cs
- FormsAuthenticationModule.cs
- FileSystemWatcher.cs
- EntityDataSourceEntitySetNameItem.cs
- SafeMILHandleMemoryPressure.cs
- SemaphoreFullException.cs
- StorageEntityTypeMapping.cs
- HttpServerVarsCollection.cs
- MimeWriter.cs
- PanelStyle.cs
- AssemblyCache.cs
- CachedBitmap.cs
- ApplicationGesture.cs
- DelegatingTypeDescriptionProvider.cs
- SspiNegotiationTokenAuthenticator.cs
- DefaultValueAttribute.cs
- XmlIgnoreAttribute.cs
- EventSource.cs
- SettingsProviderCollection.cs
- FastPropertyAccessor.cs
- RepeaterItemCollection.cs
- InstanceData.cs
- AutomationPropertyInfo.cs
- RenderingEventArgs.cs
- WorkflowMarkupSerializerMapping.cs
- BamlBinaryReader.cs
- DelegatingTypeDescriptionProvider.cs
- TokenizerHelper.cs
- XmlParserContext.cs
- TypedReference.cs
- Exceptions.cs
- AudioBase.cs
- altserialization.cs
- ValidationHelper.cs
- CursorConverter.cs
- DropShadowEffect.cs
- Set.cs
- RouteParametersHelper.cs
- RegexMatchCollection.cs
- HiddenFieldDesigner.cs
- HtmlControlPersistable.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DateTimeConverter2.cs
- SimpleType.cs
- Brushes.cs
- X509CertificateTrustedIssuerElement.cs
- WsatExtendedInformation.cs
- Function.cs
- SoapDocumentServiceAttribute.cs
- CompositeDataBoundControl.cs
- XhtmlBasicCalendarAdapter.cs
- SHA384CryptoServiceProvider.cs
- AbandonedMutexException.cs
- EventRecord.cs
- UserNameSecurityToken.cs
- SafeNativeMethodsMilCoreApi.cs
- ComboBoxAutomationPeer.cs
- ServiceNameCollection.cs
- QueueException.cs
- XmlQueryOutput.cs
- SetStoryboardSpeedRatio.cs
- SecurityCriticalDataForSet.cs
- baseaxisquery.cs
- X509SecurityTokenAuthenticator.cs
- SqlWebEventProvider.cs
- OleDbDataAdapter.cs
- XamlToRtfParser.cs
- MasterPage.cs
- CodeDirectiveCollection.cs
- XmlTextReaderImplHelpers.cs
- XamlGridLengthSerializer.cs
- NameValueSectionHandler.cs
- AmbientLight.cs
- UniqueIdentifierService.cs