dotnetomaniak.pl - Artykuły z tagiem enumerable.empty

Today I decided to check how Enumerable.EmptyT() works and wasn’t satisfied with the knowledge I got. I started digging a little bit deeper and wasted some of the precious beauty-sleep time so if you want to know what’s happening when you add an element to an empty collection, let me tell you a story of today’s night.

Enumerable.Empty() vs new IEnumerable() – what’s better? – A Girl Among Geeks

Architektura 1863 dni, 4 godziny, 22 minuty temu AGirlAmongGeeks 370 źrodło rozwiń

Enumerable.Empty Jeśli funkcja zwraca IEnumerable, nie zwracaj pustej dopiero co stworzonej listy. Enumerable.Empty() jest właśnie tym czego oczekuje wywołujący kod. return new MyClass[0]; // Better return Enumerable.Empty

Małe ulepszenia codu w C# | Show me the code

Najaktywniejsi w tym miesiącu