public override int GetHashCode() { int hash = 1; if (FromUserID.Length != 0) { hash ^= FromUserID.GetHashCode(); } if (ToUserID.Length != 0) { hash ^= ToUserID.GetHashCode(); } if (UserType != 0) { hash ^= UserType.GetHashCode(); } if (FileName.Length != 0) { hash ^= FileName.GetHashCode(); } if (Data.Length != 0) { hash ^= Data.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(RestaurantID.GetHashCode() ^ FromUserID.GetHashCode() ^ CommentContent.GetHashCode() ^ CommentTime.GetHashCode()); }
public override bool Equals(object obj) { if (obj == null || !(obj is ERRestaurantComment)) { return(false); } return(RestaurantID.Equals((obj as ERRestaurantComment).RestaurantID) & FromUserID.Equals((obj as ERRestaurantComment).FromUserID) & CommentContent.Equals((obj as ERRestaurantComment).CommentContent) & CommentTime.Equals((obj as ERRestaurantComment).CommentTime)); }
public override int GetHashCode() { int hash = 1; if (FromUserID.Length != 0) { hash ^= FromUserID.GetHashCode(); } if (ToUserID.Length != 0) { hash ^= ToUserID.GetHashCode(); } if (Content.Length != 0) { hash ^= Content.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
protected override int GetIdentityId() { //allow modify return value return(FromUserID.ToInt()); }