dotnetomaniak.pl - Artykuły z tagiem delegatesdotnetomaniak.pl - Artykuły z tagiem delegates2024-03-28T08:35:43Zhttps://dotnetomaniak.pl/Tags/delegatesCopyright (c) dotnetomaniak.pldotnetomaniak.pl Atom Generatordotnetomaniak.pl webmasteradmin@dotnetomaniak.plhttps://dotnetomaniak.pl/Assets/Images/fav.icohttps://dotnetomaniak.pl/Assets/Images/dotnetomaniak_logo-negatyw_small.png4025https://dotnetomaniak.pl/C-stuff-nobody-told-you-delegate-is-a-class-And-there-is-a-good-reason-for-that-A-Girl-Among-GeeksC# stuff nobody told you – delegate is a class! And there is a good reason for that! – A Girl Among Geeks2018-03-03T17:38:12Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small__2IZsgVwx0eCo-VHGssILQ.png"/></div><div>Have you ever wondered why blue screens of death happen so rarely, nowadays? Of course, we can thank Microsoft for this but the way they fixed this problem is not so obvious! According to Marino Posadas (and his book Mastering C# and .Net Framework) back in 2010, Microsoft made an analysis of this topic and they came to the conclusion that the 90% (wow!) of the blue screens were caused by drivers! So, Microsoft made manufacturers to follow the Hardware Compatibility List. That somehow solved most of...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/C-stuff-nobody-told-you-delegate-is-a-class-And-there-is-a-good-reason-for-that-A-Girl-Among-Geeks"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fagirlamonggeeks.com%2f2018%2f03%2f03%2fc-stuff-nobody-told-you-delegate-is-a-class-and-there-is-a-good-reason-for-that%2f" style="border:0px"/></a></div></div>AGirlAmongGeekshttps://dotnetomaniak.pl/Users/BR4sTPFFt06GUon4bGbBcQ2018-03-13T09:24:20Zhttps://dotnetomaniak.pl/C-stuff-nobody-told-you-delegate-is-a-class-And-there-is-a-good-reason-for-that-A-Girl-Among-Geeks11860Have you ever wondered why blue screens of death happen so rarely, nowadays? Of course, we can thank Microsoft for this but the way they fixed this problem is not so obvious! According to Marino Posadas (and his book Mastering C# and .Net Framework) back in 2010, Microsoft made an analysis of this topic and they came to the conclusion that the 90% (wow!) of the blue screens were caused by drivers! So, Microsoft made manufacturers to follow the Hardware Compatibility List. That somehow solved most of...http://agirlamonggeeks.com/2018/03/03/c-stuff-nobody-told-you-delegate-is-a-class-and-there-is-a-good-reason-for-that/http://dotnetomaniak.pl/Data/Thumbnails/small__2IZsgVwx0eCo-VHGssILQ.pnghttps://dotnetomaniak.pl/C-Delegates-a-fairy-tale-about-when-and-how-to-use-them-A-Girl-Among-GeeksC# Delegates – a fairy tale about when (and how) to use them – A Girl Among Geeks2018-02-19T21:23:37Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_X4UlqgYs10myF3z3mDE0FQ.png"/></div><div>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...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/C-Delegates-a-fairy-tale-about-when-and-how-to-use-them-A-Girl-Among-Geeks"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fagirlamonggeeks.com%2f2018%2f02%2f19%2fc-delegates-a-fairy-tale-about-when-and-how-to-use-them%2f" style="border:0px"/></a></div></div>AGirlAmongGeekshttps://dotnetomaniak.pl/Users/BR4sTPFFt06GUon4bGbBcQ2018-03-01T07:11:53Zhttps://dotnetomaniak.pl/C-Delegates-a-fairy-tale-about-when-and-how-to-use-them-A-Girl-Among-Geeks21140Many 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...http://agirlamonggeeks.com/2018/02/19/c-delegates-a-fairy-tale-about-when-and-how-to-use-them/http://dotnetomaniak.pl/Data/Thumbnails/small_X4UlqgYs10myF3z3mDE0FQ.pnghttps://dotnetomaniak.pl/Ten-o-wyrazeniach-lambda-jakubmaguzaplTen o wyrażeniach lambda - jakubmaguza.pl2017-03-31T13:07:38Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_u6JZctrloku5aSPVmBHSrw.png"/></div><div>I wyrażenia lambda!
Trzeci wpis z tej mini-serii. Tym razem już o wyrażeniach lambda. Zostały one wprowadzone w trzeciej wersji języka C#. We wpisie o metodach anonimowych, przedstawiłem dwa przykłady rozwiązujące ten sam problem. Pierwszy – używający tylko delegatów, drugi – wykorzystujący metody anonimowe, a teraz czas na trzeci, w którym znajdziemy wyrażenia lambda.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Ten-o-wyrazeniach-lambda-jakubmaguzapl"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fjakubmaguza.pl%2f2017%2f03%2fo-wyrazeniach-lambda%2f" style="border:0px"/></a></div></div>Jakub Maguzahttps://dotnetomaniak.pl/Users/LkiFa3sOBEu3HcBuAXiCWQ2017-04-03T02:28:42Zhttps://dotnetomaniak.pl/Ten-o-wyrazeniach-lambda-jakubmaguzapl1710I wyrażenia lambda!
Trzeci wpis z tej mini-serii. Tym razem już o wyrażeniach lambda. Zostały one wprowadzone w trzeciej wersji języka C#. We wpisie o metodach anonimowych, przedstawiłem dwa przykłady rozwiązujące ten sam problem. Pierwszy – używający tylko delegatów, drugi – wykorzystujący metody anonimowe, a teraz czas na trzeci, w którym znajdziemy wyrażenia lambda.http://jakubmaguza.pl/2017/03/o-wyrazeniach-lambda/http://dotnetomaniak.pl/Data/Thumbnails/small_u6JZctrloku5aSPVmBHSrw.pnghttps://dotnetomaniak.pl/Ten-o-metodach-anonimowych-jakubmaguzaplTen o metodach anonimowych - jakubmaguza.pl2017-03-27T10:43:27Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_kYDpP2L0DkCmmTfBf5TTLg.png"/></div><div>… potem były metody anonimowe…
Drugi wpis poprzedzający wyrażenia lambda. Krótki i dość prosty. Microsoft w C#2 postanowił usprawnić trochę tworzenie delegatów. Metody anonimowe nie dość, że skracają kod, dają nam również możliwość sprawdzenia ich wnętrzności bez przewijania plików i próby odnalezienia implementacji. Wszystko mamy w jednym miejscu. Nie musimy deklarować metod formalnie (implicitly).</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Ten-o-metodach-anonimowych-jakubmaguzapl"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fjakubmaguza.pl%2f2017%2f03%2fo-metodach-anonimowych%2f" style="border:0px"/></a></div></div>Jakub Maguzahttps://dotnetomaniak.pl/Users/LkiFa3sOBEu3HcBuAXiCWQ2017-03-29T02:04:38Zhttps://dotnetomaniak.pl/Ten-o-metodach-anonimowych-jakubmaguzapl1890… potem były metody anonimowe…
Drugi wpis poprzedzający wyrażenia lambda. Krótki i dość prosty. Microsoft w C#2 postanowił usprawnić trochę tworzenie delegatów. Metody anonimowe nie dość, że skracają kod, dają nam również możliwość sprawdzenia ich wnętrzności bez przewijania plików i próby odnalezienia implementacji. Wszystko mamy w jednym miejscu. Nie musimy deklarować metod formalnie (implicitly).http://jakubmaguza.pl/2017/03/o-metodach-anonimowych/http://dotnetomaniak.pl/Data/Thumbnails/small_kYDpP2L0DkCmmTfBf5TTLg.png