A polite message to the user and a graceful exit rather than a crash? I am in no way suggesting this satisfies your desire for a compile-time solution. It just improves the runtime situation perhaps.
>You could. But what would you put in the catch block?
>
>>Hi Claudio,
>>
>>Would it make any sense to wrap the bindings in a try...catch block?
>>
>>pamela
>>
>>>>>>Yeah, but if you change the property name, you have to change the code anyway, so I don't see what the problem is.
>>>
>>>the problem is: I change the property's name in my class that's inside a class library. I compile the solution. The compiler will not produce an error. I run the application: it crashes! That's not good. :)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only