Performance Enums parsing performance Introduction Enum type has few helper methods which make parsing strings into related enum value easy. There is Parse, as well as TryParse. Both can takes an extra parameter to specify whether the
C# How to log exceptions If you log exceptions by saving it’s message: logger.Error("Operation failed." + ex.Message); or it’s string representation: logger.Error("Operation failed." + ex.ToString()); you do it