How can clear and count a list in C#
Now we are going to learn about clear and count a list in C#.
C# does not provide a facility to resize the array in dynamically so we have a facility to increase the size that is called list. we have use the < and > for declare the list this is not symbol of the greater then or less then.
There is a facility to clear a list in c# . here we are disusing that how can count a list clear a list. there is the example below:
static void Main()
List<bool > list = new List<bool>();