public override bool Equals(object obj) { ByExample other = obj as ByExample; if (obj == null) { return(false); } if (other.Name != Name) { return(false); } if (Child == null) { return(other.Child == null); } return(other.Child.Equals(Child)); }
public ByExample(string name, ByExample child) : this(name) { Child = child; }
public ByExample(string name, ByExample child) : this(name) { Child = child; }