Please enable JavaScript.
Coggle requires JavaScript to display documents.
Collections (Generic Interfaces (Use as Return Type (Cast from Interface…
Collections
Generic Interfaces
-
-
Use as Return Type
Cast from Interface when using - ToArray, ToList, ToDictionary...
-
IEnumerable<T> - provides an immutable collection so the caller can't modify the collection -> when retreiving data from the repository
-
-
LINQ
-
-
Wait to cast the result to a concrete type until all query operations are defined -> doesnt iterate the collection multiple time
-
-
-
-
LINQ (Language Integrated Query) - A way to express queries against a data source directly from a .NET language
-
Delegate - Type that represents a reference to a method with a specific parameter list and return type
Lambda Expression - A method that can be passed as an argument to a method wich has a delegate type parameter