/// <summary> /// get parse value /// </summary> /// <param name="input">should be the full form or abbrivation form of the flag which you want to get the value</param> /// <returns>return the flag value</returns> /// <exception cref="InvalidOperationException">if parse faild will throw exception</exception> /// <exception cref="ArgumentException">if input can't match any flags will throw exception</exception> public bool GetFlagValue(string input) { if (!IsSuccess) { throw new InvalidOperationException(); } if (FlagHelper.FindFlag(input) == null) { throw new ArgumentException(); } return(FlagHelper.FindFlag(input).Value); }