Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Xml / System / Xml / Serialization / _Events.cs / 1 / _Events.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Serialization {
using System.IO;
using System;
using System.Collections;
using System.ComponentModel;
///
///
/// [To be supplied.]
///
public delegate void XmlAttributeEventHandler(object sender, XmlAttributeEventArgs e);
///
///
/// [To be supplied.]
///
public class XmlAttributeEventArgs : EventArgs {
object o;
XmlAttribute attr;
string qnames;
int lineNumber;
int linePosition;
internal XmlAttributeEventArgs(XmlAttribute attr, int lineNumber, int linePosition, object o, string qnames) {
this.attr = attr;
this.o = o;
this.qnames = qnames;
this.lineNumber = lineNumber;
this.linePosition = linePosition;
}
///
///
/// [To be supplied.]
///
public object ObjectBeingDeserialized {
get { return o; }
}
///
///
/// [To be supplied.]
///
public XmlAttribute Attr {
get { return attr; }
}
///
///
///
/// Gets the current line number.
///
///
public int LineNumber {
get { return lineNumber; }
}
///
///
///
/// Gets the current line position.
///
///
public int LinePosition {
get { return linePosition; }
}
///
///
///
/// List the qnames of attributes expected in the current context.
///
///
public string ExpectedAttributes {
get { return qnames == null ? string.Empty : qnames; }
}
}
///
public delegate void XmlElementEventHandler(object sender, XmlElementEventArgs e);
///
public class XmlElementEventArgs : EventArgs {
object o;
XmlElement elem;
string qnames;
int lineNumber;
int linePosition;
internal XmlElementEventArgs(XmlElement elem, int lineNumber, int linePosition, object o, string qnames) {
this.elem = elem;
this.o = o;
this.qnames = qnames;
this.lineNumber = lineNumber;
this.linePosition = linePosition;
}
///
public object ObjectBeingDeserialized {
get { return o; }
}
///
public XmlElement Element {
get { return elem; }
}
///
public int LineNumber {
get { return lineNumber; }
}
///
public int LinePosition {
get { return linePosition; }
}
///
///
///
/// List of qnames of elements expected in the current context.
///
///
public string ExpectedElements {
get { return qnames == null ? string.Empty : qnames; }
}
}
///
///
/// [To be supplied.]
///
public delegate void XmlNodeEventHandler(object sender, XmlNodeEventArgs e);
///
///
/// [To be supplied.]
///
public class XmlNodeEventArgs : EventArgs {
object o;
XmlNode xmlNode;
int lineNumber;
int linePosition;
internal XmlNodeEventArgs(XmlNode xmlNode, int lineNumber, int linePosition, object o) {
this.o = o;
this.xmlNode = xmlNode;
this.lineNumber = lineNumber;
this.linePosition = linePosition;
}
///
///
/// [To be supplied.]
///
public object ObjectBeingDeserialized {
get { return o; }
}
///
///
/// [To be supplied.]
///
public XmlNodeType NodeType {
get { return xmlNode.NodeType; }
}
///
///
/// [To be supplied.]
///
public string Name {
get { return xmlNode.Name; }
}
///
///
/// [To be supplied.]
///
public string LocalName {
get { return xmlNode.LocalName; }
}
///
///
/// [To be supplied.]
///
public string NamespaceURI {
get { return xmlNode.NamespaceURI; }
}
///
///
/// [To be supplied.]
///
public string Text {
get { return xmlNode.Value; }
}
///
///
///
/// Gets the current line number.
///
///
public int LineNumber {
get { return lineNumber; }
}
///
///
///
/// Gets the current line position.
///
///
public int LinePosition {
get { return linePosition; }
}
}
///
public delegate void UnreferencedObjectEventHandler(object sender, UnreferencedObjectEventArgs e);
///
public class UnreferencedObjectEventArgs : EventArgs {
object o;
string id;
///
public UnreferencedObjectEventArgs(object o, string id) {
this.o = o;
this.id = id;
}
///
public object UnreferencedObject {
get { return o; }
}
///
public string UnreferencedId {
get { return id; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Serialization {
using System.IO;
using System;
using System.Collections;
using System.ComponentModel;
///
///
/// [To be supplied.]
///
public delegate void XmlAttributeEventHandler(object sender, XmlAttributeEventArgs e);
///
///
/// [To be supplied.]
///
public class XmlAttributeEventArgs : EventArgs {
object o;
XmlAttribute attr;
string qnames;
int lineNumber;
int linePosition;
internal XmlAttributeEventArgs(XmlAttribute attr, int lineNumber, int linePosition, object o, string qnames) {
this.attr = attr;
this.o = o;
this.qnames = qnames;
this.lineNumber = lineNumber;
this.linePosition = linePosition;
}
///
///
/// [To be supplied.]
///
public object ObjectBeingDeserialized {
get { return o; }
}
///
///
/// [To be supplied.]
///
public XmlAttribute Attr {
get { return attr; }
}
///
///
///
/// Gets the current line number.
///
///
public int LineNumber {
get { return lineNumber; }
}
///
///
///
/// Gets the current line position.
///
///
public int LinePosition {
get { return linePosition; }
}
///
///
///
/// List the qnames of attributes expected in the current context.
///
///
public string ExpectedAttributes {
get { return qnames == null ? string.Empty : qnames; }
}
}
///
public delegate void XmlElementEventHandler(object sender, XmlElementEventArgs e);
///
public class XmlElementEventArgs : EventArgs {
object o;
XmlElement elem;
string qnames;
int lineNumber;
int linePosition;
internal XmlElementEventArgs(XmlElement elem, int lineNumber, int linePosition, object o, string qnames) {
this.elem = elem;
this.o = o;
this.qnames = qnames;
this.lineNumber = lineNumber;
this.linePosition = linePosition;
}
///
public object ObjectBeingDeserialized {
get { return o; }
}
///
public XmlElement Element {
get { return elem; }
}
///
public int LineNumber {
get { return lineNumber; }
}
///
public int LinePosition {
get { return linePosition; }
}
///
///
///
/// List of qnames of elements expected in the current context.
///
///
public string ExpectedElements {
get { return qnames == null ? string.Empty : qnames; }
}
}
///
///
/// [To be supplied.]
///
public delegate void XmlNodeEventHandler(object sender, XmlNodeEventArgs e);
///
///
/// [To be supplied.]
///
public class XmlNodeEventArgs : EventArgs {
object o;
XmlNode xmlNode;
int lineNumber;
int linePosition;
internal XmlNodeEventArgs(XmlNode xmlNode, int lineNumber, int linePosition, object o) {
this.o = o;
this.xmlNode = xmlNode;
this.lineNumber = lineNumber;
this.linePosition = linePosition;
}
///
///
/// [To be supplied.]
///
public object ObjectBeingDeserialized {
get { return o; }
}
///
///
/// [To be supplied.]
///
public XmlNodeType NodeType {
get { return xmlNode.NodeType; }
}
///
///
/// [To be supplied.]
///
public string Name {
get { return xmlNode.Name; }
}
///
///
/// [To be supplied.]
///
public string LocalName {
get { return xmlNode.LocalName; }
}
///
///
/// [To be supplied.]
///
public string NamespaceURI {
get { return xmlNode.NamespaceURI; }
}
///
///
/// [To be supplied.]
///
public string Text {
get { return xmlNode.Value; }
}
///
///
///
/// Gets the current line number.
///
///
public int LineNumber {
get { return lineNumber; }
}
///
///
///
/// Gets the current line position.
///
///
public int LinePosition {
get { return linePosition; }
}
}
///
public delegate void UnreferencedObjectEventHandler(object sender, UnreferencedObjectEventArgs e);
///
public class UnreferencedObjectEventArgs : EventArgs {
object o;
string id;
///
public UnreferencedObjectEventArgs(object o, string id) {
this.o = o;
this.id = id;
}
///
public object UnreferencedObject {
get { return o; }
}
///
public string UnreferencedId {
get { return id; }
}
}
}
// 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
- RuleSettings.cs
- WebPartCancelEventArgs.cs
- ScanQueryOperator.cs
- MouseGesture.cs
- ObjectDataSourceDisposingEventArgs.cs
- InvalidCommandTreeException.cs
- PropertyValidationContext.cs
- COMException.cs
- HuffModule.cs
- NameValueCollection.cs
- SplitterEvent.cs
- ParenthesizePropertyNameAttribute.cs
- _AcceptOverlappedAsyncResult.cs
- TextElementCollection.cs
- BamlResourceDeserializer.cs
- OleStrCAMarshaler.cs
- RawUIStateInputReport.cs
- WebEvents.cs
- RoleManagerModule.cs
- DesignerProperties.cs
- RpcCryptoRequest.cs
- SoapElementAttribute.cs
- ToolStripControlHost.cs
- oledbconnectionstring.cs
- SerializationObjectManager.cs
- CompareValidator.cs
- PaginationProgressEventArgs.cs
- CalendarDay.cs
- CustomSignedXml.cs
- SpeakProgressEventArgs.cs
- DataGridColumn.cs
- DataGridViewRowsAddedEventArgs.cs
- ConfigurationSettings.cs
- UInt16.cs
- InstanceBehavior.cs
- Random.cs
- UInt64Converter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ValueExpressions.cs
- ToolStripItemEventArgs.cs
- TextParaClient.cs
- ManifestResourceInfo.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- Axis.cs
- XmlArrayAttribute.cs
- CodeTryCatchFinallyStatement.cs
- MouseOverProperty.cs
- ComPlusTypeValidator.cs
- PersistChildrenAttribute.cs
- Point3DKeyFrameCollection.cs
- Filter.cs
- ColumnMapTranslator.cs
- LineVisual.cs
- ToolStripContextMenu.cs
- MenuItemBindingCollection.cs
- SoapDocumentServiceAttribute.cs
- BooleanAnimationUsingKeyFrames.cs
- SelectedCellsChangedEventArgs.cs
- IncrementalReadDecoders.cs
- Button.cs
- MediaCommands.cs
- RunClient.cs
- CheckBoxList.cs
- ReadOnlyDataSourceView.cs
- CuspData.cs
- FieldDescriptor.cs
- OdbcConnectionHandle.cs
- WSFederationHttpBindingCollectionElement.cs
- StylusTip.cs
- HighlightVisual.cs
- DoubleAnimationClockResource.cs
- AutoScrollHelper.cs
- DependencyProperty.cs
- Pen.cs
- PermissionSetEnumerator.cs
- SourceFileBuildProvider.cs
- IPPacketInformation.cs
- DetailsViewInsertedEventArgs.cs
- XmlSchemaAttribute.cs
- HtmlInputControl.cs
- SessionParameter.cs
- TypeInfo.cs
- SafeNativeMethods.cs
- BitmapEffectrendercontext.cs
- RangeBaseAutomationPeer.cs
- WindowsGraphics.cs
- CorrelationManager.cs
- PathData.cs
- HtmlObjectListAdapter.cs
- EnumValAlphaComparer.cs
- WebPartAddingEventArgs.cs
- FactoryId.cs
- HistoryEventArgs.cs
- StandardCommands.cs
- WebPartZoneBase.cs
- GcHandle.cs
- MasterPageParser.cs
- MediaPlayerState.cs
- RuntimeWrappedException.cs
- PackageRelationshipSelector.cs