SIL.FieldWorks.XWorks.MorphologyEditor.InflAffixTemplateControl.EntryHasAffixThatMightBeInSlot C# (CSharp) Method

EntryHasAffixThatMightBeInSlot() private method

Determine if the lex entry can appear in the prefix/suffix slot
private EntryHasAffixThatMightBeInSlot ( ILexEntry lex, bool fIsPrefixSlot ) : bool
lex ILexEntry
fIsPrefixSlot bool
return bool
		private bool EntryHasAffixThatMightBeInSlot(ILexEntry lex, bool fIsPrefixSlot)
		{
			bool fInclude = false; // be pessimistic
			var morphTypes = lex.MorphTypes;
			foreach (var morphType in morphTypes)
			{
				if (fIsPrefixSlot)
				{
					if (morphType.IsPrefixishType)
					{
						fInclude = true;
						break;
					}
				}
				else
				{
					// is a suffix slot
					if (morphType.IsSuffixishType)
					{
						fInclude = true;
						break;
					}
				}
			}
			return fInclude;
		}