C# Puzzlers (Video Training)
How well do you know C#? Put your knowledge to the test in Bill Wagner’s C# Puzzlers video LiveLesson! Bill Wagner’s C# Puzzlers exposes common misconceptions that developers have about the C# language. Misconceptions occur when developers are unclear about how language features interact. On other...
Otros Autores: | |
---|---|
Formato: | |
Idioma: | Inglés |
Publicado: |
Addison-Wesley Professional
2011.
|
Edición: | 1st edition |
Colección: | Livelessons
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629069206719 |
Sumario: | How well do you know C#? Put your knowledge to the test in Bill Wagner’s C# Puzzlers video LiveLesson! Bill Wagner’s C# Puzzlers exposes common misconceptions that developers have about the C# language. Misconceptions occur when developers are unclear about how language features interact. On other occasions, a lack of understanding about how a single features works, can stump and frustrate the most experienced developer. Using the “Puzzler” format, Bill demonstrates these misconceptions using small code samples; he then explores different ways for you to modify the code until its behavior is correct. This collection of Puzzlers is divided into seven sections. Each section delves into the rules that govern aspects of the C# language that developers find most confusing: I. Generics II. Method Resolution III. Named and Optional Parameters IV. LINQ V. Value and Reference Semantics VI. Dynamic Programming in C# The introductory puzzle introduces the format using a puzzle, and discusses some of the nuances of object construction. I. Generics Generics are still one of the most important aspects of the .NET environment and the C# language. So many of the features we use every day are built upon generics in one way or another. Generics are still a complicated feature. You must create code whose types are not known until runtime. The compiler must generate IL with minimal information about the actual types that will be represented by the type parameters. The JIT must convert that IL into executable code and plug in the real types for the type parameters. Finally, the meta data carried along must include information that enables reflection and other advanced techniques to work correctly. Puzzle 1 - Operations on Generic Type Parameters What information gets conveyed, and what information cannot get used when a real type is substituted for a type parameter? Puzzle 2 - Generics and Specializations What happens when you create overloads for generic methods? Puzzle 3 - Generics and Variance How do generics and arrays differ with respect to variance? Puzzle 4 - Generics, Constraints and Overloads How does the compile choose between different candidate generic methods? II. Method Resolution The rules that govern method resolution in C# are necessarily complex. The features the community has asked for and the team has implemented have only added more complexity to those rules with each new release of the C# language. If you want to be a strong C# develop... |
---|---|
Notas: | Title from title screen. Imprint from resource description page. |
Descripción Física: | 1 online resource (1 video file, approximately 2 hr., 9 min.) |