Docs: List<string> does not contain a definition for Changed

Created on 25 Sep 2018  Â·  4Comments  Â·  Source: dotnet/docs

List<string> names = new List<string>();
names.Changed += new EventHandler(ListChanged);
List<T> does not contain a definition for Changed.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - C# Guide P2

Most helpful comment

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.

All 4 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stjepan picture stjepan  Â·  3Comments

ygoe picture ygoe  Â·  3Comments

JagathPrasad picture JagathPrasad  Â·  3Comments

skylerberg picture skylerberg  Â·  3Comments

Manoj-Prabhakaran picture Manoj-Prabhakaran  Â·  3Comments