Commit ad9ba7f4 authored by 潘栩锋's avatar 潘栩锋 🚴

PropertiesManager 添加 GetAllPropertyNames

parent 07375642
......@@ -20,7 +20,16 @@ namespace Misc
return from p in properties select p.Name;
}
/// <summary>
/// 获取所有属性名。
/// </summary>
/// <returns></returns>
public static IEnumerable<string> GetAllPropertyNames(Type type)
{
PropertyInfo[] properties = type.GetProperties();
return from p in properties select p.Name;
}
/// <summary>
/// 设定参数(属性)的值,触发属性值变化“通知”,writeVal
/// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment