Dynamic C# 7 Fundamentals
Take advantage of dynamic C# to reduce the amount of code that needs to be written, meaning more time to deliver more features to the customer. You'll learn how dynamic C# can make many programming tasks easier.
What you'll learn
While C# is a statically typed language, it also has (often overlooked) dynamic features. For example, using the dynamic keyword allows the instantiation of dynamic objects whose structure is not known by the compiler at compile time. In this course, Dynamic C# 7 Fundamentals, you'll learn how the use of dynamic C# makes some difficult and cumbersome programming tasks easier to write and work with. You'll learn how dynamic C# can make COM interop easier, enable adding of arbitrary properties at runtime, and simplify working with JSON and SQL data. You'll also discover how the dynamic keyword can reduce XAML boilerplate binding code and even enable interoperation with other dynamic languages such as Python. By the end of this course, you'll know how to take advantage of dynamic C# in order to reduce the amount of code that needs to be written, make it more readable, and give yourself more time to deliver more features to the customer.
Table of contents
- Version Check 0m
- Introduction 3m
- Why Dynamic C#? 5m
- Course Outline 1m
- Introducing the DLR 4m
- Static and Dynamic Binding 3m
- Dynamic Binding in Action and RuntimeBinderException 8m
- Implicit Dynamic Conversions 5m
- Var and Dynamic 2m
- Runtime Method Resolution 7m
- Dynamic and Object Types 3m
- Limitations of Callable Methods 4m
- Introducing ExpandoObject 1m
- Refactoring to Dynamic 8m
- Dynamically Adding ExpandoObject Behavior 2m
- Summary 2m
- Introduction 2m
- Simplifying Reflection Code 5m
- Reducing Code with Unified Numeric Methods 9m
- COM Interop Without Interop Assemblies 4m
- Reducing Plumbing Code with Dynamic JSON 4m
- Dynamically Populating Excel with Arbitrary JSON Data 2m
- Dynamic JSON in Web API 2m
- ExpandoObject and XAML Databinding 4m
- Dynamic SQL Query Results with Dapper 5m
- Improving SpecFlow Test Code with Dynamics 4m
- Dynamic Code Considerations 2m
- Summary 3m
- Introduction 2m
- Why Custom Dynamic Classes? 2m
- The IDynamicMetaObjectProvider Interface 1m
- The DynamicObject Base Class 3m
- Creating a Dynamic HtmlElement Class 2m
- Creating the First Test 2m
- Adding Initial Dynamic Capabilities 5m
- Dynamic Operation Exceptions 3m
- Improving the Debugger Experience 4m
- Overriding ToString 3m
- Implementing Additional Interfaces 3m
- Making the Dynamic Object Enumerable 1m
- Implementing Dynamic Methods 4m
- Method Invocation Precedence 2m
- Invoking the Dynamic Object Itself 2m
- Summary 2m