| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //
- // filename.cs:
- //
- // Author:
- // John Donagher ([email protected])
- //
- // (C) 2002 John Donagher
- //
- using System;
- namespace System.Xml.Serialization
- {
- /// <summary>
- /// Summary description for XmlAnyElementAttribute.
- /// </summary>
- ///
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
- | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple=true)]
- public class XmlAnyElementAttribute : Attribute
- {
- private string elementName;
- private string ns;
- public XmlAnyElementAttribute ()
- {
- }
- public XmlAnyElementAttribute (string name)
- {
- elementName = name;
- }
- public XmlAnyElementAttribute (string name, string ns)
- {
- elementName = name;
- Namespace = ns;
- }
- public string Name {
- get {
- return elementName;
- }
- set {
- elementName = value;
- }
- }
- public string Namespace {
- get {
- return ns;
- }
- set {
- ns = value;
- }
- }
-
- internal bool InternalEquals (XmlAnyElementAttribute other)
- {
- if (other == null) return false;
- return (elementName == other.elementName && ns == other.ns);
- }
- }
- }
|