An open API service indexing awesome lists of open source software.

https://github.com/omid-ahmadpour/avoidnullcollectionsincsharp

This repository demonstrates best practices for handling collections in C#.
https://github.com/omid-ahmadpour/avoidnullcollectionsincsharp

Last synced: 7 months ago
JSON representation

This repository demonstrates best practices for handling collections in C#.

Awesome Lists containing this project

README

          

# Avoiding Null Collections in C#
This repository demonstrates best practices for handling collections in C#.
It explains why you should never return null collections, how it leads to runtime errors, and provides alternatives.
The repo includes code examples for both problematic null cases and their safer solutions, helping you write cleaner and more reliable code.