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

Sukhpinder Singh | C# .Net
Write A Catalyst
Published in
6 min readSep 7, 2024

--

For Non-Members: Read here for Free

Created by Author using Canva

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…

--

--