摘要: C# 枚举帮助类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Utils { /// <su 阅读全文
posted @ 2022-06-18 17:46 三瑞 阅读(235) 评论(0) 推荐(0)
摘要: C# 中执行使用委托执行代码块 以实现公用try catch public static T Exec<T>(Func<T> fun) { T result = default(T); try { result = fun(); } catch { } return result; } protec 阅读全文
posted @ 2022-06-18 17:33 三瑞 阅读(108) 评论(0) 推荐(0)