Mariusz Wojcik
  • Home
  • Author
  • GitHub
  • Presentations

C#

A collection of 2 posts

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

  • Mariusz Wojcik
    Mariusz Wojcik
2 min read
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

  • Mariusz Wojcik
    Mariusz Wojcik
3 min read
Mariusz Wojcik © 2025
Latest Posts Twitter Ghost