Static Class and Extends methods in C#

The static keyword is very useful in c#  when we need to use class, method or property without creating an object instance is very common using a static class as a box or container for properties helpers or methods. For example, our boss said the employee object needs to be able to show the salary…

Object Initialization and Constructor

When we have few fields in a class and want to initialize every field in a constructor it should become a little bit messy and maybe we need a few constructors. public class User { public string Name; public List<string> Roles; public User(string name) { Name = name; } public User(string name, List<string> roles) {…