예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            InheritanceEN t = obj as InheritanceEN;

            if (t == null)
            {
                return(false);
            }
            if (Id.Equals(t.Id))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 public InheritanceEN(InheritanceEN inheritance)
 {
     this.init(Id, inheritance.Father, inheritance.Son);
 }