Member-only story
.NET KNOWLEDGE SERIES
If You Can Answer These 7 Concepts Correctly, You’re Decent at .NET
Perfect for anyone wanting to prove their .NET expertise!
For Non-Members: Read here for Free

Hello .NET Developers,
The article delves into different C# concepts that every developer must know. It's always a great idea to test your knowledge and I’ve put together a few examples in this article with explanations and code examples.
If you know and understand the code examples, you’re likely doing quite well in the .NET.
1. Difference between IEnumerable<T>
vs. ICollection<T>
While writing logic in C#, developers frequently encounter IEnumerable<T>
and ICollection<T>
. They may look quite similar but they serve different purposes in software development.
IEnumerable<T>
acts as the base interface for non-generic collections. It helps to iterate over a collection of a defined type.
Good to have a lightweight collection which is more secure, as data manipulation is not allowed. Any collection if you want to prevent data manipulation, its recommended to…