sunpengfei
7 天以前 8ffda541b48cbf619f8493196da4fb44d4f3ddc5
FlexJobApi.Core/Utils/StringUtils/StringUtils.cs
@@ -49,6 +49,12 @@
            return null;
        }
        public static decimal? ToDecimal(this string str)
        {
            if (str.IsNotNull() && decimal.TryParse(str, out var @int)) return @int;
            return null;
        }
        public static T? ToEnum<T>(this string str, string requiredMessage = null)
             where T : struct
        {