Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ISessionStateStore.cs
- HtmlInputCheckBox.cs
- diagnosticsswitches.cs
- TextTreeFixupNode.cs
- XmlMtomWriter.cs
- DataGridParentRows.cs
- SessionStateContainer.cs
- NonVisualControlAttribute.cs
- UnsafeNativeMethods.cs
- TriggerBase.cs
- URL.cs
- LinkConverter.cs
- ArrayTypeMismatchException.cs
- DataGridState.cs
- ConfigXmlReader.cs
- MetadataItemSerializer.cs
- FormsAuthenticationEventArgs.cs
- ACE.cs
- SemaphoreFullException.cs
- Vector3DConverter.cs
- UnsafeNativeMethods.cs
- DnsPermission.cs
- FontSource.cs
- Color.cs
- XmlSchemaComplexContentRestriction.cs
- Rijndael.cs
- IndentedTextWriter.cs
- SHA512.cs
- XmlMemberMapping.cs
- XmlQueryCardinality.cs
- XmlValueConverter.cs
- followingsibling.cs
- BufferModeSettings.cs
- BitmapFrame.cs
- WsatServiceAddress.cs
- SingleObjectCollection.cs
- XmlSerializationReader.cs
- Operators.cs
- DesigntimeLicenseContext.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- Cursor.cs
- Base64Decoder.cs
- FlagsAttribute.cs
- DataGridPageChangedEventArgs.cs
- ImageSourceValueSerializer.cs
- TTSEvent.cs
- PriorityItem.cs
- ITextView.cs
- ScrollBar.cs
- CloseSequence.cs
- TranslateTransform3D.cs
- ToolStripDropDownClosingEventArgs.cs
- Stroke.cs
- ObjectSpanRewriter.cs
- AnimationClock.cs
- InternalMappingException.cs
- SystemSounds.cs
- CommandID.cs
- TextEditorSelection.cs
- FileAuthorizationModule.cs
- AppDomainProtocolHandler.cs
- SqlDataRecord.cs
- SqlBinder.cs
- ScriptDescriptor.cs
- LocalFileSettingsProvider.cs
- IdnElement.cs
- ModulesEntry.cs
- KeysConverter.cs
- DbParameterCollectionHelper.cs
- SubclassTypeValidator.cs
- XmlReturnReader.cs
- WebZone.cs
- RoutedEventValueSerializer.cs
- ApplicationSettingsBase.cs
- Misc.cs
- AuthorizationSection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BindableTemplateBuilder.cs
- PopupRoot.cs
- XmlCharacterData.cs
- TypeExtensionSerializer.cs
- HttpPostedFile.cs
- ZipPackage.cs
- DefaultParameterValueAttribute.cs
- EncodingFallbackAwareXmlTextWriter.cs
- XD.cs
- CustomWebEventKey.cs
- TaiwanLunisolarCalendar.cs
- DataAccessException.cs
- DrawingState.cs
- DrawingDrawingContext.cs
- ServiceModelConfigurationSectionGroup.cs
- UdpContractFilterBehavior.cs
- EmptyCollection.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- mda.cs
- SafeNativeMethods.cs
- Message.cs
- TemplateControl.cs
- SimpleTypeResolver.cs