修改了设备展示界面

This commit is contained in:
2025-06-22 21:00:06 +08:00
parent 908dc60439
commit 32648ff89f
7 changed files with 75 additions and 19 deletions

View File

@@ -32,7 +32,7 @@ public static class ObjectExtensions
/// <param name="source"></param>
/// <param name="target"></param>
/// <typeparam name="T"></typeparam>
public static void NewTo<T>(this Object source ) where T : new()
public static T NewTo<T>(this Object source ) where T : new()
{
T target = new T();
var sourceType = source.GetType();
@@ -47,5 +47,6 @@ public static class ObjectExtensions
targetProperty.SetValue(target, value, null);
}
}
return target;
}
}