I have attached 2 files to demonstrate the issue. Look at line 13 of the files, and you will see that the ONLY change is declaring TestStruct as a class in the file that compiles and as a struct in the one that does not. Naturally, you cannot have both files in the compilation tree at the same time, as in accordance with NT support instructions, both the class and the struct have been declared in the global namespace. (I needed to demonstrate that the ONLY change was the substitution of class for struct, which is why I did not change the name of the object from TestStruct). IOW, to demonstrate the problem, you need only one file. Just edit it, changing line 13 to read struct instead of class and try to compile. That should show the problem.
I have isolated the problem to what seems improbable: the problem only occurs if we try to expose the properties of the struct in ANY GridCategory. Rem out the GridCategory attribute, and the problem disappears. That is not an acceptable solution. I want the struct exposed for user input via code if required, so it cannot go into the default "Misc" category for unassigned properties.
Comment