2013
Pluralsight
Filip Ekberg
2h 34m
English
In this course we look at MSIL; the code that is generated when you compile C#. We explore MSIL so that you get a better understanding of how C# works and how it is compiled.
MSIL for the C# Developer Introduction
Introduction
Compiling C#
What is a compiler?
What happens when we run a C# Application?
What is MSIL?
Decompiling a C# Application and viewing MSIL
The basic OpCodes and how to spot them when decompiled
Summary
Understanding IL and the Evaluation Stack
The structure of MSIL
What is a Stack?
Analyze a method
What the method really looks like
Calling methods
Understanding Recursion
Summary
Building things at runtime
What is Reflection?
Why should I avoid Reflection?
Using Reflection to get information in runtime
Why create things in runtime?
A first look at DynamicMethod and MSIL in a C# Application
Convert a basic C# method to MSIL
Comparing our MSIL to a disassembled snippet
Converting a method line by line to MSIL
Converting a method line by line to MSIL part 2
Summary
Building Things at Runtime Part 2
Building More Things in Runtime
Calling Methods
Calling Dynamic Methods
Recursive Methods
Using a Switch
Creating A Type With TypeBuilder
Summary
Understanding the Different OpCodes
More Operation Codes Ahead
What happens when we host the Dynamic Method anonymously?
Getting the Remainder of a Division
Negating Values
Using Bitwise Operations
Creating an Instance of A Class
Loading Elements From an Array
Summary
Compiling your own IL
MSIL Outside Visual Studio
The IL Dissassembler
Calling Console.WriteLine
Using Arguments Passed to Our Program
Conversion, Value Types and Boxing
Creating an Entire Type Using MSIL
Summary
Wrap Up
Summary
http://www.pluralsight.com/training/Courses/TableOfContents/msil-csharp-developer
Download File Size:490.93 MB