示例#1
0
        public virtual pe_attr shallow_copy(pe_muta muta)
        {
            var copy = new pe_attr();

            copy_object.copy <pe_attr>(this, copy);

            copy.pe_muta_id = muta.pe_muta_id;
            copy.pe_muta    = muta;

            // copie des libellés qui sont référencés par l'ip
            if (pe_libl_list.Count > 0)
            {
                copy.pe_muta.pe_ip.add_libl(pe_libl_list.First().shallow_copy());
            }

            return(copy);
        }
示例#2
0
        public override bool Equals(object obj)
        {
            pe_attr toCompare = obj as pe_attr;

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

            if (!Object.Equals(this.pe_muta_id, toCompare.pe_muta_id))
            {
                return(false);
            }
            if (!Object.Equals(this.nom_attr, toCompare.nom_attr))
            {
                return(false);
            }
            if (!Object.Equals(this.clatit_attr, toCompare.clatit_attr))
            {
                return(false);
            }

            return(true);
        }