Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ObjectCopier.cs
===================================================================
diff -u -r3893 -r4000
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ObjectCopier.cs (.../ObjectCopier.cs) (revision 3893)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ObjectCopier.cs (.../ObjectCopier.cs) (revision 4000)
@@ -51,7 +51,6 @@
namespace Deltares.DamEngine.Data.Standard
{
-
///
/// Class to handle copying of objects
///
@@ -68,7 +67,11 @@
///
public static bool IsPrimitive(this Type type)
{
- if (type == typeof(String)) return true;
+ if (type == typeof(String))
+ {
+ return true;
+ }
+
return type.IsValueType && type.IsPrimitive;
}
@@ -82,30 +85,55 @@
return InternalCopy(originalObject, new Dictionary