/// <summary> /// Parses the value of <see cref="Mode"/>. /// </summary> protected bool TryGetChangeCaseMode(out ChangeCaseMode result) { if (string.IsNullOrEmpty(Mode)) { result = ChangeCaseMode.LowerCase; return(true); } foreach (ChangeCaseMode eValue in Enum.GetValues(typeof(ChangeCaseMode))) { if (string.Equals(Mode, eValue.ToString(), StringComparison.InvariantCultureIgnoreCase)) { result = eValue; return(true); } } result = ChangeCaseMode.LowerCase; return(false); }
/// <summary> /// Parses the value of <see cref="Mode"/>. /// </summary> protected bool TryGetChangeCaseMode(out ChangeCaseMode result) { if (string.IsNullOrEmpty(Mode)) { result = ChangeCaseMode.LowerCase; return true; } foreach (ChangeCaseMode eValue in Enum.GetValues(typeof (ChangeCaseMode))) { if (string.Equals(Mode, eValue.ToString(), StringComparison.InvariantCultureIgnoreCase)) { result = eValue; return true; } } result = ChangeCaseMode.LowerCase; return false; }