SIL.FieldWorks.FDO.DomainServices.SemanticDomainSearch.SenseSearchStrategy.DoesInputMatchWord C# (CSharp) Méthode

DoesInputMatchWord() protected méthode

Looks through a list of words and searches with multiple keys to find the best matching result between keys and words.
protected DoesInputMatchWord ( IEnumerable wordsToLookIn ) : MatchingResult
wordsToLookIn IEnumerable
Résultat MatchingResult
		protected override MatchingResult DoesInputMatchWord(IEnumerable<string> wordsToLookIn)
		{
			var bestMatch = MatchingResult.NoMatch;
			foreach (var key in CurrentSearchKeys)
			{
				var result = LookForHitInWordCollection(wordsToLookIn, key);
				switch (result)
				{
					case MatchingResult.NoMatch:
						break;
					case MatchingResult.WholeWordMatch:
						return result;
					case MatchingResult.StartOfWordMatch:
						bestMatch = result;
						break;
				}
			}
			return bestMatch;
		}