mercredi 16 décembre 2015

A method that fires when a class or its properties are accessed

I have an issue on my project that only happens once in a while, and hence difficult to trace:

Nullable object must have a value. Blockquote

So I want to implement a way to log all attempts on accessing a class / class property that is not defined. basically a method that executes every time a class or its properties are accessed.

I know there is a similar question here, but I think my requirements are different. And I would appreciate any suggestions that don't include third party plugins.

Any ideas?





Aucun commentaire:

Enregistrer un commentaire