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())); }
protected static byte[] Serialize(OneStringInfo data) { return(Serialization.Encapsulate(BitConverter.GetBytes(data.OneGramCount), BitConverter.GetBytes(data.N1PlusStarwStar), BitConverter.GetBytes(data.N1PlusStarw), Serialize(data.NwStarCount), Serialization.Encapsulate(Serialization.Serialize(data.MostLikelies)), Serialization.Encapsulate(Serialize(data.TwoGrams)))); }