fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4.  
  5. public class Program
  6. {
  7. public static void Main()
  8. {
  9. var list = new List<int>(10);
  10.  
  11. Console.WriteLine("Capacity: {0}", list.Capacity);
  12. Console.WriteLine("Count: {0}", list.Count);
  13. }
  14. }
Success #stdin #stdout 0.04s 37000KB
stdin
Standard input is empty
stdout
Capacity: 10
Count:    0