コード例 #1
0
        public override bool Equals(object obj)
        {
            DepartmentKeyType toCompare = obj as DepartmentKeyType;

            if (toCompare == null)
            {
                return(false);
            }

            if (!Object.Equals(this.DepartmentId, toCompare.DepartmentId))
            {
                return(false);
            }
            if (!Object.Equals(this.PhoneID, toCompare.PhoneID))
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
 public DepartmentPhone()
 {
     this._DepartmentKey = new DepartmentKeyType();
     this._Employees     = new Iesi.Collections.Generic.HashedSet <Employee>();
     OnCreated();
 }