1、新增预任务生成帮助类
2、齐套配送接口参数调整
This commit is contained in:
19
common/Tnb.Common/Utils/ObjectPropertyChecker.cs
Normal file
19
common/Tnb.Common/Utils/ObjectPropertyChecker.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Tnb.Common.Utils
|
||||
{
|
||||
public static class ObjectPropertyChecker
|
||||
{
|
||||
public static bool HasProperty<T>(T obj, string propertyName)
|
||||
{
|
||||
Type type = typeof(T);
|
||||
var propertyInfo = type.GetProperty(propertyName);
|
||||
return propertyInfo != null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user