예제 #1
0
 protected bool Equals(TwoStringInfo other)
 {
     return(TwoGramCount == other.TwoGramCount && N1PlusStarww == other.N1PlusStarww &&
            NwwStarCount.Equals(other.NwwStarCount) &&
            ThreeGramCounts.SequenceEqual(other.ThreeGramCounts, new KeyValuePairIntUintComparer()) &&
            MostLikelies.SequenceEqual(other.MostLikelies));
 }
예제 #2
0
 protected bool Equals(OneStringInfo other)
 {
     return(OneGramCount == other.OneGramCount &&
            N1PlusStarwStar == other.N1PlusStarwStar &&
            N1PlusStarw == other.N1PlusStarw &&
            NwStarCount.Equals(other.NwStarCount) &&
            MostLikelies.SequenceEqual(other.MostLikelies) &&
            TwoGrams.SequenceEqual(other.TwoGrams, new KeyValuePairIntTwoStringInfoComparer()));
 }