CoreExtensionIsEqualsT(T, T, ListString) Method
比對物件是否相等
Namespace: eBizprise.FrameworkAssembly: eBizprise.Framework.Core (in eBizprise.Framework.Core.dll) Version: 25.0.3.0+adf38c4ccb2bf98d8ad258a6278302b5e05a94ed
public static bool IsEquals<T>(
this T sourceObject,
T targetObject,
List<string> ignorePropertyNames
)
- sourceObject T
- 來源物件
- targetObject T
- 比對物件
- ignorePropertyNames ListString
- 忽略屬性名稱
- T
- 物件類型
Boolean是否相等In Visual Basic and C#, you can call this method as an instance method on any object of type
T. 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).
TestClass sourceClass = new TestClass() { DecimalColumn = (decimal)3.3, IntColumn = 2, StringColumn = "Data" };
TestClass targetClass = new TestClass() { DecimalColumn = (decimal)3.1, IntColumn = 2, StringColumn = "Data" };
var isSame = sourceClass.IsEquals(targetClass);
| Date | Version | Description |
|---|
| 2025/08/07 | 2.2.8.0 | 加入物件比對功能 |
| 2025/09/19 | 25.0.0.0 | 彙整2025年度初版 |