コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            CategoryEN t = obj as CategoryEN;

            if (t == null)
            {
                return(false);
            }
            if (CategoryId.Equals(t.CategoryId))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
 public CategoryEN(CategoryEN category)
 {
     this.init(CategoryId, category.Product, category.Name, category.Descripcion, category.ParentCategory, category.SubCategory);
 }