Delegaty to obiekty, w których wywołuje się inne metody (przechowuje referencje do metod). Delegaty przypominają działaniem wskaźniki z języka C++, ale ich przewagą jest to, że nie mogą odwoływać się do metody, której sygnatura nie odpowiada sygnaturze delegata – czyli: metoda musi przyjmować takie same argumenty i zwracać taki sam typ, jaki podano w deklaracji delegata.
Daj się poznać 2017 2527 dni, 43 minuty temu 118 źrodło rozwiń
A few days ago I was playing with Entity Framework when suddenly an Exception popped out on the screen: Additional information: LINQ to Entities does not recognize the method ‚System.String GetFullName(User)’ method and this method cannot be translated into a store expression. That was because accidently I treated Expression
Sztuka programowania 2717 dni, 5 godzin, 12 minut temu 271 źrodło rozwiń
Short explanation of difference between expressions and functions in .NET
Sztuka programowania 3075 dni, 27 minut temu 385 źrodło rozwiń