In Java language it’s a general practice to use
List list = new Arraylist();
Or any of the derived types which makes it easier to changes the indentation if it changes later point of time.
But in C#, it’s seen people using
List list = new List();
As a C# developers am I doing something wrong here, if so what should be the correct way so that it makes the code more flexible to change
Want to know the correct way using collections in C#