List<string> names = new List<string>();
names.Changed += new EventHandler(ListChanged);
List<T> does not contain a definition for Changed.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@solaomosola it's not the perfect naming. The List class used is not the standard .NET class, but the one defined earlier in the topic:
https://docs.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/classes-and-objects#other-function-members
Okay, I understand now. That should be changed or a little note added to explain that. Thank you.
Agreed. I think we should actually change the name of the class to MyList or something else. We shouldn't use an extremely common class name like List.
@BillWagner I know you're out this week but I'm assigning this to you. I "triaged" it the best I could so feel free to adjust anything and everything when you get back.
Most helpful comment
Agreed. I think we should actually change the name of the class to
MyListor something else. We shouldn't use an extremely common class name likeList.