This error has cost me almost two days to debug:

Its only symptoms where spurious but widespread changes to a single property. While this is “obviously” human error, these “easy” points would have mitigated the damage done:
- strict type checking: the expression is of type
stringand not of typebool, the C# compiler would have known the difference and issued an error - in-band evaluation: The expression didn’t trigger breakpoints within the MethodName property. This would have pinpointed the cause of the data change immediately
- constant vigilance!
should that be MethodName==”ToString”
ie == not =
Exactly! It is sooo galling…