unsafe public MorphoAmbiguityTuple( Word word, WordFormMorphology wordFormMorphology, PunctuationTypeEnum punctuationType) { this.word = word; this.wordFormMorphology = wordFormMorphology; this.punctuationType = punctuationType; }
private static bool Equals(MorphoAmbiguityTuple x, MorphoAmbiguityTuple y) { if (!WordFormMorphology.Equals(ref x.wordFormMorphology, ref y.wordFormMorphology)) { return(false); } if (string.CompareOrdinal(x.word.valueUpper, y.word.valueUpper) != 0) { return(false); } return(x.punctuationType == y.punctuationType); }