Admin.net框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
871 B

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