BLL/Business.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;

namespace BLL
{
    public static  class Business
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static string GetDoublefromStr(string str)
        {
            try
            {
                if (string.IsNullOrEmpty(str))
                    return null;
                double db = Convert.ToDouble(str.Trim());
                return db.ToString();
            }
            catch
            {
                return null;
            }
        }


        public static string GetIntFromStr(string str)
        {
            try
            {
                if (String.IsNullOrEmpty(str))
                    return null;
                int i = Convert.ToInt32(str.Trim());
                string istr = i.ToString();
                return istr;
            }
            catch(Exception ex)
            {
                string exstr = ex.ToString();
                return null;
            }
        }


        public static string GetDateTimeFromStr(string str)
        {
            try
            {
                if (String.IsNullOrEmpty(str))
                    return null;
                DateTime datetime = Convert.ToDateTime(str.Trim());
                string datetimeStr = datetime.ToString();
                return datetimeStr;
            }
            catch (Exception ex)
后面还有 8 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。