| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- //------------------------------------------------------------------------------
- // <copyright file="_Events.cs" company="Microsoft">
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
- // <owner current="true" primary="true">Microsoft</owner>
- //------------------------------------------------------------------------------
- namespace System.Xml.Serialization {
- using System.IO;
- using System;
- using System.Collections;
- using System.ComponentModel;
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventHandler"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public delegate void XmlAttributeEventHandler(object sender, XmlAttributeEventArgs e);
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventArgs"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- 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;
- }
-
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventArgs.ObjectBeingDeserialized"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public object ObjectBeingDeserialized {
- get { return o; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventArgs.Attr"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public XmlAttribute Attr {
- get { return attr; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventArgs.LineNumber"]/*' />
- /// <devdoc>
- /// <para>
- /// Gets the current line number.
- /// </para>
- /// </devdoc>
- public int LineNumber {
- get { return lineNumber; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventArgs.LinePosition"]/*' />
- /// <devdoc>
- /// <para>
- /// Gets the current line position.
- /// </para>
- /// </devdoc>
- public int LinePosition {
- get { return linePosition; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventArgs.Attributes"]/*' />
- /// <devdoc>
- /// <para>
- /// List the qnames of attributes expected in the current context.
- /// </para>
- /// </devdoc>
- public string ExpectedAttributes {
- get { return qnames == null ? string.Empty : qnames; }
- }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlElementEventHandler"]/*' />
- public delegate void XmlElementEventHandler(object sender, XmlElementEventArgs e);
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlElementEventArgs"]/*' />
- 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;
- }
-
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlElementEventArgs.ObjectBeingDeserialized"]/*' />
- public object ObjectBeingDeserialized {
- get { return o; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlElementEventArgs.Attr"]/*' />
- public XmlElement Element {
- get { return elem; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlElementEventArgs.LineNumber"]/*' />
- public int LineNumber {
- get { return lineNumber; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlElementEventArgs.LinePosition"]/*' />
- public int LinePosition {
- get { return linePosition; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlAttributeEventArgs.ExpectedElements"]/*' />
- /// <devdoc>
- /// <para>
- /// List of qnames of elements expected in the current context.
- /// </para>
- /// </devdoc>
- public string ExpectedElements {
- get { return qnames == null ? string.Empty : qnames; }
- }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventHandler"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public delegate void XmlNodeEventHandler(object sender, XmlNodeEventArgs e);
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- 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;
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.ObjectBeingDeserialized"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public object ObjectBeingDeserialized {
- get { return o; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.NodeType"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public XmlNodeType NodeType {
- get { return xmlNode.NodeType; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.Name"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public string Name {
- get { return xmlNode.Name; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.LocalName"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public string LocalName {
- get { return xmlNode.LocalName; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.NamespaceURI"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public string NamespaceURI {
- get { return xmlNode.NamespaceURI; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.Text"]/*' />
- /// <devdoc>
- /// <para>[To be supplied.]</para>
- /// </devdoc>
- public string Text {
- get { return xmlNode.Value; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.LineNumber"]/*' />
- /// <devdoc>
- /// <para>
- /// Gets the current line number.
- /// </para>
- /// </devdoc>
- public int LineNumber {
- get { return lineNumber; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="XmlNodeEventArgs.LinePosition"]/*' />
- /// <devdoc>
- /// <para>
- /// Gets the current line position.
- /// </para>
- /// </devdoc>
- public int LinePosition {
- get { return linePosition; }
- }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="UnreferencedObjectEventHandler"]/*' />
- public delegate void UnreferencedObjectEventHandler(object sender, UnreferencedObjectEventArgs e);
- /// <include file='doc\_Events.uex' path='docs/doc[@for="UnreferencedObjectEventArgs"]/*' />
- public class UnreferencedObjectEventArgs : EventArgs {
- object o;
- string id;
- /// <include file='doc\_Events.uex' path='docs/doc[@for="UnreferencedObjectEventArgs.UnreferencedObjectEventArgs"]/*' />
- public UnreferencedObjectEventArgs(object o, string id) {
- this.o = o;
- this.id = id;
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="UnreferencedObjectEventArgs.UnreferencedObject"]/*' />
- public object UnreferencedObject {
- get { return o; }
- }
- /// <include file='doc\_Events.uex' path='docs/doc[@for="UnreferencedObjectEventArgs.UnreferencedId"]/*' />
- public string UnreferencedId {
- get { return id; }
- }
- }
- }
|