Many people neglect C# delegates because they cannot find a reason to use them. On the other hand, there is (rather small) group of people who overuse delegates in code that could be easily replaced by literal method call. So when should we use delegates? Well, they show their real power in situations when we need a mechanism to easily switch from one logic to another, without changing our application’s core code. Sounds ok but what does it mean in a real life? It’s time for a fairy tale 😊. Imagine...
Strona głównaSztuka programowania
Sztuka programowania 2570 dni, 10 godzin, 47 minut temu 117 pokaż kod licznika zwiń
Podobne artykuły:
- Obsługa zdarzeń w C# - delegaty i eventy
- Ten o metodach anonimowych - jakubmaguza.pl
- Marker Interface | Show me the code
- Misleading documentation - Exchange meeting requests
- [EN] What I’ve learned today – Debugging with Pseudovariables ($exception)
- [C#] Płytkie i głębokie kopie obiektów – wprowadzenie « Arvangen
- [EN] Piotr Łuksza - Cassandra Fluent Query Builder
- .NET Blog: FluentNhibernate- mapowanie kolumn typu time
- Podsumowanie DSP2017 i projektu BoardGamesNook – programmer-girl
- Project Manager Part 1 – Ogrom pracy | Developer blog
- C# stuff nobody told you – delegate is a class! And there is a good reason for that! – A Girl Among Geeks