CoreExtensionCloneT(Object) Method
跨型別複製物件
Namespace: eBizprise.FrameworkAssembly: eBizprise.Framework.Core (in eBizprise.Framework.Core.dll) Version: 26.0.2.0+8b857ad8115790502a00f482082d0feffe7e9c92
public static T Clone<T>(
this Object sourceObject
)
where T : new()
- sourceObject Object
- 來源物件
- T
- 目標物件類型
T複製物件In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
SourceClass source = new SourceClass() { Name = "Test", Value = 100 };
var target = source.Clone<TargetClass>();
| Date | Version | Description |
|---|
| 2026/01/07 | 26.0.0.0 | 支援跨型別物件複製 |