C# · Dotnet

Refactoring: Enums with ExtensionMethods

Dear Reader, Today i had to do some unit testing of a class which had some private instance and static methods along with non privates in it. These methods had some good core logic in it which i determined to do unit testing. Though many articles and experts say that its ok not to do… Continue reading Refactoring: Enums with ExtensionMethods

C# · Dotnet

Effective Extension methods with Enums

Dear Reader, Today i learn something interesting and quite effective with the C# feature extension methods along with enums. There are at times we need to do some extensible operations on enums. Unlike structs/classes, enums do not provide us any space in itself to add Methods for doing some operations on it or its data… Continue reading Effective Extension methods with Enums