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!

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…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Write A Catalyst
Write A Catalyst

Published in Write A Catalyst

Write A Catalyst and Build it into Existence.

Sukhpinder Singh | C# .Net
Sukhpinder Singh | C# .Net

Written by Sukhpinder Singh | C# .Net

.Net developer 👨‍💻 who's 100% convinced my bugs are funnier than yours. 🐛💥 #BugLife Pubs: https://medium.com/c-sharp-programming

Responses (18)

Write a response

IEnumerable<T> is not just for non-generic collections, comparing ref and out are like apples vs oranges, they are totally different things, ref is to mutate the value in an address, out is a way to force the caller to expect 2 different semantics…

Collection Vs innumerable is mostly about eager loading Vs lazy loading

Thanks for sharing that..!!