C# – How to create a common method to update different properties in a object without creating multiple methods – Asp.net
This is my object public class Totals { public int Total1 { get; set; } public int Total2 { get; set; } public int Total3 { get; set; } public int Total4 { get; set; } } Incrementing the values…