diff --git a/snippets/csharp/new-in-6/OldCode.cs b/snippets/csharp/new-in-6/OldCode.cs index f3de343f1b8..924c9f7ddb5 100644 --- a/snippets/csharp/new-in-6/OldCode.cs +++ b/snippets/csharp/new-in-6/OldCode.cs @@ -30,11 +30,13 @@ public string FullName namespace ReadOnlyOldStyle { + // public class Student { // public string FirstName { get; private set; } public string LastName { get; private set; } + public ICollection Grades { get; private set; } // // @@ -42,7 +44,9 @@ public Student(string firstName, string lastName) { FirstName = firstName; LastName = lastName; + Grades = new List(); } // } -} \ No newline at end of file + // +}