- [Instructor] So we're back here in Visual Studio,…and this time we're looking at the C sharp code…because what I want to do…is I want to actually create generic type,…and so I'm just going to create a class,…and we'll call this class, oh, I don't know.…We'll call it class foo.…But specifically, class foo…is going to take a type parameter T,…and we're going to say specifically that I want to have…a private field of type T, which we'll call T field,…like so, and we will have a property,…we'll make it a public property…and it'll be of type T, and we'll call it prop.…
And we'll have both a getter and a setter.…And we'll have a method that actually will print out…whatever that particular T field is,…so we'll have public void print it.…Console dot write line…whatever T field happens to be.…And let's have one other here.…So T do nothing with this taking a T.…
We'll take T field, set it to T, and return T field.…All of this is intended simply to give us…a scaffold from which to look at…what this will look like inside of IL.…
- ILDasm and ILasm
- EMAC CLI specifications
- CIL bytecode
- CIL opcodes and operands
- Stack manipulation
Skill Level Intermediate
1. ILDasm: The .NET Disassembler
2. ILasm: The .NET Assembler
3. EMAC CLI Specification
EMAC CLI specifications6m 39s
4. CIL Bytecode
CIL bytecode2m 33s
5. Data Types and Directives
7. Other Directives
8. CIL Opcodes and Operands
10. Using This New-Found Knowledge
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.