コード例 #1
0
 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);
 }
コード例 #2
0
        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));
        }