How to use ILogger in a C# extension method? [closed]
Closed 20 mins ago.
Is an extension method to convert from this class to another class appropriate here?
I’ve got a class (Request
) that I want to convert to another one (Message
) where the properties are of different types. I need to validate that the types are correct and can be parsed correctly, and log when the request is invalid.