5
I’m working with the class List<T>, so I came across some research methods, if I may call it:
- Find;
- Exists;
- Contains;
I was in doubt of what the difference between them, so I searched on the Microsoft site: List Class, I came to the following conclusion:
- Find: Looks for an element that matches the settings, and returns the first value of the list.
- Exists: Determines whether there is an element matching the definitions.
- Contains: Determines whether there is an element that corresponds to ALL definitions.
Could you give me a better explanation of the 3 methods? I believe it is one that confuses the less experienced.
Linked: Difference between Any, Contains and Exists
– Jéf Bueno