When I tried to run my program, all these errors were deleted, and one error appeared with a complaint about the declaration of an alias of type.
The problem was that the type ValidationMessage.EnumValidationMessageType
existed in the namespace that was declared later:
using WPF.Utilities.ObjectModel; using MsgType = ValidationMessage.EnumValidationMessageType;
Of course, C # cannot figure out where the type comes from based on previous namespace inclusions, I had to fully expose it:
using WPF.Utilities.ObjectModel; using MsgType = WPF.Utilities.ObjectModel.ValidationMessage.EnumValidationMessageType;
As soon as I did this, another problem disappeared.
I assume that I was so carried away and confused by the strange errors coming out of the linq operator, coupled with the fact that VS did not detect errors when I used the alias in the triple operators above, that I did not see an obvious error there.
Thanks for the nemesv hint - I should know better than trusting the development-time compiler.
Alain source share