TAILIEUCHUNG - Apress introducing ASP.Net 4.0 with visual studio 2010_3

Tham khảo tài liệu 'apress introducing with visual studio 2010_3', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | CHAPTER 3 LANGUAGE AND DYNAMIC CHANGES public class Testclass . public void Method1 Compile the application and examine the IL using ILDASM. You will find something similar to the following .method private hidebysig static void Main string args cil managed .entrypoint Code size 15 0xf .maxstack 1 .locals init 0 class t IL_0000 nop IL_0001 newobj instance void .ctor IL_0006 IL_0007 IL_0008 callvirt instance void Method1 IL_000d nop IL_000e ret end of method Program Main However if we alter our t variable to the following dynamic t new TestClass . then the IL will look very different I have removed some of the IL to save some trees class mscorlib 1 class IL_003a call class 1 0 class 1 class mscorlib 2 class object Create class IL_003f stsfld class .CallSite 1 class mscorlib 2 class object Main oSiteContainer0 p__Site1 IL_0056 callvirt instance void class mscorlib 2 class object Invoke 0 1 Whoa what is happening here Well the short answer is that calls to dynamic methods are sent to the Dynamic Language Runtime for resolution. It is time to take a look into how the DLR works. 57 CHAPTER 3 LANGUAGE AND DYNAMIC CHANGES Dynamic Language Runtime DLR The Dynamic Language Runtime DLR is behind all the cool dynamic functionality and sits just above the core .NET framework. The DLR s job is basically to .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.