AutoWikiBrowser.Plugins.Kingbotk.Templating.HasYesParamLowerOrTitleCase C# (CSharp) Method

HasYesParamLowerOrTitleCase() private method

private HasYesParamLowerOrTitleCase ( bool yes, string paramName ) : bool
yes bool
paramName string
return bool
        internal bool HasYesParamLowerOrTitleCase(bool yes, string paramName)
        {
            // HACK: A little hack to ensure we don't change no to No or yes to Yes as our only edit, and also for checking "yes" values
            if (Parameters.ContainsKey(paramName))
            {
                if (yes && Parameters[paramName].Value.ToLower().Equals("yes") || !yes && Parameters[paramName].Value.ToLower().Equals("no"))
                {
                    return true;
                }
            }

            return false;
        }