private static void CheckNumberArgument(string s) { if (object.Equals(s, null) || object.Equals(s, string.Empty)) { throw new ArgumentException("数値文字列が指定されていません。"); } }