namespace Admin.NET.Core.Service; /// /// 自定义方法 /// public class FuncList { /// /// 字符串相加 /// /// /// /// public string Merge(object a, object b) { return a.ToString() + b.ToString(); } /// /// 对象合并 /// /// /// /// public object MergeObj(object a, object b) { return new { a, b }; } /// /// 是否包含 /// /// /// /// public bool IsContain(object a, object b) { return a.ToString().Split(',').Contains(b); } }