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 1851 dni, 22 godziny, 43 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

Sztuka programowania 3826 dni, 18 godzin, 30 minut temu Paweł Łukasik 422 źrodło rozwiń

Najaktywniejsi w tym miesiącu