Friday, July 29, 2016

Generics in .NET framework - Language Integrate Query (LINQ) study series (III)

July 29, 2016

Generics - article reading:

Notes:

Advantages:
code reusability and type safety 
Better performance - no need to box the value types
type-safe callbacks
lightweight dynamic methods vs entire assemblies 


compiler will help to do type safety - enforce at compile time 
The need for type casting and the possibility of run-time errors are reduced. 

Generics streamline dynamically generated code. 


placeholder (type parameters) for one or more of the type that they store or use. 

No comments:

Post a Comment