TAILIEUCHUNG - C# in Depth what you need to master c2 and 3 phần 6

Nhiều người trong số các chỉ định được sử dụng bởi các nhà sản xuất và người bán để phân biệt sản phẩm của họ được khẳng định là nhãn hiệu hàng hoá. Trong trường hợp những chỉ định xuất hiện trong cuốn sách, và các ấn phẩm Manning nhận thức của một tuyên bố nhãn hiệu, chỉ định đã được in trong mũ ban đầu hoặc tất cả các mũ. | Summary 181 without using a dedicated thread until it had completed calling the supplied delegate to handle the result. It would then call MoveNext again and our method would continue. This time we kick off two requests in parallel and the CCR to call another delegate with the results of both operations when they ve both finished. After that MoveNext is called for a final time and we get to complete the request processing. Although it s obviously more complicated than the synchronous version it s still all in one method it will get executed in the order written and the method itself can hold the state in the local variables which become state in the extra type generated by the compiler . It s fully asynchronous using as few threads as it can get away with. I haven t shown any error handling but that s also available in a sensible fashion that forces you to think about the issue at appropriate places. It all takes a while to get your head around at least unless you ve seen continuationpassing style code before but the potential benefits in terms of writing correct scalable code are enormous and it s only feasible in such a neat way due to C 2 s syntactic sugar around iterators and anonymous methods. The CCR hasn t hit the mainstream at the time of writing but it s possible that it will become another normal part of the development toolkit11 and that other novel uses for iterator blocks will be thought up over time. As I said earlier the point of the section is to open your mind to possible uses of the work that the compiler can do for you beyond just simple iteration. Summary C supports many patterns indirectly in terms of it being feasible to implement them in C . However relatively few patterns are directly supported in terms of language features being specifically targeted at a particular pattern. In C 1 the iterator pattern was directly supported from the point of view of the calling code but not from the perspective of the collection being iterated over. .

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.