v3b71: Cannot declare arrays of primitive types

Topics: Service Factory Modeling Edition Forum
Jun 12, 2007 at 10:27 AM
Edited Jun 12, 2007 at 2:31 PM
I noticed that I can't add a property to a message contract that is of type byte-array. I first need to define a data contract collection for this. I find it really annoying and fail to see the phylosophy behind it. Can anyone elaborate on it?

I just discovered that creating a primitive data collection for a byte[] creates a class that tries to derive from byte[]. Since this is a sealed class, this is not allowed.
Aug 15, 2007 at 9:33 AM
I have verified that drop 117 allows you to specify a collection type for a primitive data contract attribute.
Aug 15, 2007 at 4:06 PM
We are also adding an IsCollection property to the Message that will allow you to specify that a message part is a collection of some primitive type. That way you don't have to create a data contract collection if the collection isn't reusable.