Example #1
0
        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));
        }
Example #2
0
		public ByExample(string name, ByExample child) : this(name)
		{
			Child = child;
		}
Example #3
0
 public ByExample(string name, ByExample child) : this(name)
 {
     Child = child;
 }