.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
872 B

// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
namespace Ricciolo.StylesExplorer.MarkupReflection
{
public class XmlNamespace
{
public XmlNamespace(string prefix, string ns)
{
Prefix = prefix;
Namespace = ns;
}
public string Prefix { get; }
public string Namespace { get; }
public override bool Equals(object obj)
{
XmlNamespace o = obj as XmlNamespace;
if (o == null)
return false;
return o.Prefix.Equals(Prefix) && o.Namespace.Equals(Namespace);
}
public override int GetHashCode()
{
int hashCode = 0;
unchecked
{
if (Namespace != null)
hashCode += 1000000007 * Namespace.GetHashCode();
if (Prefix != null)
hashCode += 1000000009 * Prefix.GetHashCode();
}
return hashCode;
}
}
}