using System; using System.Collections.Generic; using System.Text; namespace sharpcomparer { public class Property { private string name; private string value; public string Name { get { return name; } set { name = value; } } public string Value { get { return this.value; } set { this.value = value; } } public Property(string name, string value) { this.name = name; this.value = value; } public static bool operator ==(Property a, Property b) { if (System.Object.ReferenceEquals(a, b)) { return true; } if (((object)a == null) || ((object)b == null)) { return false; } if ( !(a.name == b.name && a.value == b.value) ) { return false; } return true; } public static bool operator !=(Property a, Property b) { return !(a == b); } } }