////// 引用對象比較 /// /// /// ///public static bool CompareObject(object objA, object objB) { bool flag = false; if (objA == DBNull.Value || objB == DBNull.Value || objA == null || objB == null) { flag = false; } else if (objA.GetType() != objB.GetType()) { flag = false; } else { string strA = EntityClassXmlSerializer
深拷貝部分代碼:
C# 實體類序列化與反序列化一 (XmlSerializer)
C# 實體類序列化與反序列化二 (DataContractSerializer)