public override bool Equals(object obj) { if (obj == null) return false; if (obj == this) return true; var o = obj as DataCollectitem; return o != null && Itemid.Equals(o.Itemid) && Count.Equals(o.Count); }
protected void drop() { JumbotOA.BLL.COMDLL com = new JumbotOA.BLL.COMDLL(); Itemid.DataSource = com.COM_Select("OA_ItemTB", "typeid", "parentid", "1", "0", 8); Itemid.DataTextField = "titlename"; Itemid.DataValueField = "Id"; Itemid.DataBind(); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } var o = obj as DataLootitem; return(o != null && Lootid.Equals(o.Lootid) && Itemid.Equals(o.Itemid)); }
public override int GetHashCode() { return Itemid.GetHashCode() + Count.GetHashCode(); }
} // 数量上限 public override int GetHashCode() { return(Lootid.GetHashCode() + Itemid.GetHashCode()); }