示例#1
0
 public override int GetHashCode()
 {
     const int prime = 31;
     int result = 1;
     result = prime * result + /*((Context is null) ? 0 :*/ Context.GetHashCode()/*)*/; // LUCENENET NOTE: Enum can never be null in .NET
     result = prime * result + ((FlushInfo is null) ? 0 : FlushInfo.GetHashCode());
     result = prime * result + ((MergeInfo is null) ? 0 : MergeInfo.GetHashCode());
     result = prime * result + (ReadOnce ? 1231 : 1237);
     return result;
 }
示例#2
0
        public override int GetHashCode()
        {
            const int prime  = 31;
            int       result = 1;

            result = prime * result + ((Context == null) ? 0 : Context.GetHashCode());
            result = prime * result + ((FlushInfo == null) ? 0 : FlushInfo.GetHashCode());
            result = prime * result + ((MergeInfo == null) ? 0 : MergeInfo.GetHashCode());
            result = prime * result + (ReadOnce ? 1231 : 1237);
            return(result);
        }