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 2461 dni, 8 godzin, 25 minut temu AGirlAmongGeeks 372 ź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

Sztuka programowania 4436 dni, 4 godziny, 12 minut temu Paweł Łukasik 423 źrodło rozwiń