/// <summary> /// Whether this Link is equal to other Link. Compares by Id. /// </summary> public override bool Equals(object other) { TestLink link = other as TestLink; return((link == null) ? false : this.id.Equals(link.id)); }
/// <summary> /// Whether this Link is exactly the same as other Link. Compares all fields. /// </summary> public bool IsSame(TestLink other) { if (other == null) { return(false); } return(this.id.Equals(other.id) && this.name.Equals(other.name) && this.storage.Equals(other.storage)); }