How to create custom exception handler for custom controls or extension methods.
- by Shantanu Gupta
I am creating an extension method in C# to retrieve some value from datagridview.
Here if a user gives column name that doesnot exists then i want this function to throw an exception that can be handled at the place where this function will be called.
How can i achieve this.
public static T Value<T>(this DataGridView dgv, int RowNo,…