The reason this code is useful?
Because it allows you to write this sort of code:
class Program
{
private static Collection<int> nums;
static void Main(string[] args)
{
nums.Add(1);
Console.WriteLine(nums.Count);
}
}
I was aiming for that, and still this code strikes me as wrong.
Comments
Comment preview