The generated CopyTo() function does not handle lists well. Since the properties always return a list (an empty list if the element is not set), the current test that tests the list against null to see if it needs to be copied is wrong, and should use Any() instead.
The generated
CopyTo()
function does not handle lists well. Since the properties always return a list (an empty list if the element is not set), the current test that tests the list againstnull
to see if it needs to be copied is wrong, and should useAny()
instead.