Therefore, the code that translates the CustomAttributeData to CustomAttributeBuilder needs to convert ReadOnlyCollection constructor arguments to arrays. Example code showing the legitimacy of checking for ReadOnlyCollections is shown in the docs examples:
Fixes #56.
As noted by the
CustomAttributeTypedArgument
docs:Therefore, the code that translates the
CustomAttributeData
toCustomAttributeBuilder
needs to convertReadOnlyCollection
constructor arguments to arrays. Example code showing the legitimacy of checking forReadOnlyCollection
s is shown in the docs examples: