Advanced C#: Hands-on with LINQ, Dynamic Type, Extension Methods, and Tuples
by Matt Milner
Introduction
- Advance your skills
- What you should know
- CoderPad tour
Mod 1: Joining with LINQ
- Joining datasets in a LINQ query
- Understanding issues of joining collections with databases
- LINQ expression could not be translated
to fix this issue, switch around the joins - Code Challenge: LINQ cross-source join
- Solution: LINQ cross-source join
Mod 2. Using the Dynamic Type
- The dynamic type
- Using the dynamic type
- </> Code Challenge: Using a dynamic type in a method
- Solution: Using a dynamic type in a method
Mod 3. Creating Extension Methods
- Extension methods
- Creating a string extension
- Code Challenge: TrimAndPad extension method
- Solution: TrimAndPad extension method
Mod 4. Working with Tuples
- Tuples explained
- Deconstructing a record to a tuple
- example of a Deconstruct
- you can use it like this
- </> Code Challenge: Use a tuple to return data
- Solution: Use a tuple to return data
Mod 5. Creating Generic Types and Methods
- Generic types and methods
- Generic collections
- Code Challenge: Generic class using collections
- Solution: Generic class using collections
Mod 6. Conclusion
- Conclusion
Comments
Post a Comment