Tag: .NET Core

ILDasm with .Net Core

Need to Convert CIL Code into Text? Try ILDasm!   The C# compiler converts C# code to common intermediate language (CIL) code and not to machine code. The processor can directly understand machine code, but CIL code needs to be converted before the processor can execute it. Consider using the Intermediate Language Disassembler (ILDasm) when you need to convert CIL…

Implementing a Custom ILogger with Exception Handling for .NET Core

This article corresponds with the MSDN article: Essential .NET – Logging with .NET Core. This github repo contains the code referenced in the article. Not in particular the unit test LogCritical_Exception_Success for an example of handling an exception using the custom logger.

The Custom Logger implementation is straightforward:

Here is the the extension method for adding a custom…