|
using System.Collections.Generic;
namespace Ricciolo.StylesExplorer.MarkupReflection
{
internal class XmlNamespace
{
private string _prefix;
private string _namespace;
public XmlNamespace(string prefix, string ns)
{
_prefix = prefix;
_namespace = ns;
}
public string Prefix
{
get { return _prefix; }
}
public string Namespace
{
get { return _namespace; }
}
public override bool Equals(object obj)
{
if (obj is XmlNamespace)
{
XmlNamespace o = (XmlNamespace)obj;
return (o.Prefix.Equals(this.Prefix) && o.Namespace.Equals(this.Namespace));
}
return base.Equals(obj);
}
public override int GetHashCode()
{
return _prefix.GetHashCode() + _namespace.GetHashCode() >> 20;
}
}
internal class XmlNamespaceCollection : List<XmlNamespace>
{}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.