public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (ElementType != 0) { hash ^= ElementType.GetHashCode(); } if (ElementModule != 0) { hash ^= ElementModule.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (NeedUnlock != 0) { hash ^= NeedUnlock.GetHashCode(); } if (unlockClaim_ != null) { hash ^= UnlockClaim.GetHashCode(); } if (Desc.Length != 0) { hash ^= Desc.GetHashCode(); } return(hash); }
public void MergeFrom(ElementPB other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.ElementType != 0) { ElementType = other.ElementType; } if (other.ElementModule != 0) { ElementModule = other.ElementModule; } if (other.Name.Length != 0) { Name = other.Name; } if (other.NeedUnlock != 0) { NeedUnlock = other.NeedUnlock; } if (other.unlockClaim_ != null) { if (unlockClaim_ == null) { unlockClaim_ = new global::Com.Proto.UnlockRulePB(); } UnlockClaim.MergeFrom(other.UnlockClaim); } if (other.Desc.Length != 0) { Desc = other.Desc; } }