public
anonymous / InvalidOperation.cs
Created

  • Download Gist
InvalidOperation.cs
C#
1 2 3
List<Apple> apples = new List<Apple> { new Apple(), new Apple() };
List<Object> objects = apples;
objects[0] = "This is not an apple.";

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.