Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ObjectCopier.cs =================================================================== diff -u -r6404 -r7077 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ObjectCopier.cs (.../ObjectCopier.cs) (revision 6404) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ObjectCopier.cs (.../ObjectCopier.cs) (revision 7077) @@ -1,4 +1,4 @@ -// Copyright (C) Stichting Deltares 2025. All rights reserved. +// Copyright (C) Stichting Deltares 2026. All rights reserved. // // This file is part of the Dam Engine. // @@ -104,7 +104,7 @@ } Type typeToReflect = originalObject.GetType(); - if (IsPrimitive(typeToReflect)) + if (typeToReflect.IsPrimitive()) { return originalObject; } @@ -123,7 +123,7 @@ if (typeToReflect.IsArray) { Type arrayType = typeToReflect.GetElementType(); - if (!IsPrimitive(arrayType)) + if (!arrayType.IsPrimitive()) { var clonedArray = (Array) cloneObject; clonedArray.ForEach((array, indices) => array.SetValue(InternalCopy(clonedArray.GetValue(indices), visited), indices)); @@ -154,7 +154,7 @@ continue; } - if (IsPrimitive(fieldInfo.FieldType)) + if (fieldInfo.FieldType.IsPrimitive()) { continue; }