PurplePen.Textifier.ApplyNounCase C# (CSharp) Method

ApplyNounCase() private method

private ApplyNounCase ( Symbol symbol, string currentNounCase ) : string
symbol Symbol
currentNounCase string
return string
        string ApplyNounCase(Symbol symbol, string currentNounCase)
        {
            // Get the case to apply to the modified symbol.
            string modifiedNounCase = GetSymbolModifiedCase(symbol);

            // If it wasn't empty, use, otherwise use the current one.
            if (string.IsNullOrEmpty(modifiedNounCase))
                return currentNounCase;
            else
                return modifiedNounCase;
        }