Since all standard assemblies like mscorlib
may be instrumented, interesting situations arise when the monitoring callbacks perform rather simple operations which in turn lead to calls into mscorlib
provides a shield which deals with such re-entrance problems.
Still, this shield comes with a performance overhead.
The utilities of Microsoft.ExtendedReflection
provide alternatives to methods of the standard libraries (just as the extended metadata is an alternative to the standard reflection library).
- Utilities.Safe.Collections contains a set of collection types which are safe from instrumentation (and therefore faster). This set of types include many commonly desired collection types which cannot be found in the standard System.Collections.Generic namespace.
- Utilities.Safe.Diagnostics provide alternatives to the Debug and Debugger class of the standard System.Diagnostics namespace.