Why do I get this error in the static class ? -> Readonly field _logger is never assigned – Asp.net
I am using ILogger in my static class. The codes in the class shown in below: internal static class LicenceSetter { private static ILogger _logger; internal static void WorkWithStream(Action<Stream> setLicence, string name = null) { try { Assembly assembly =…