Static Members:
We can have Static (or shared) methods,properties and fields.They are shared between instances of a class,so can be thought of as global for objects of a given class.
Extension methods enable you to ‘add’ method to an existing type without creating a new derived type or otherwise modifying the original type . Extension methods were introduced in C# 3.0. Extension methods are defined as static method inside static class and the first parameter must be ‘this’…
Hashing protects the integrity of your data. It protects your data against potential alteration so that your data isn’t changed one bit. Hash is a number that is generated from the text through a hash algorithm. This number is fixed length and smaller than the original text.
To create customized validation checks which is required in scenarios like Cross-property validation i.e, when we need to validate the content of a property in light of the value stored in another property.
Data Annotations are attributes which are applied to the class or members that specify validation rules, specify how the data is displayed, and set relationships between classes. The System.ComponentModel.DataAnnotations namespace contains the classes that are used as data attributes. By applying…