TAILIEUCHUNG - Effective C#50 Specific Ways to Improve Your C# 2nd phần 5

Người mới bắt đầu sử dụng một ngôn ngữ nước ngoài (con người) có thể quản lý để giao tiếp. Họ biết các từ, và họ có thể phần chúng lại với nhau để có được điểm của họ qua. Khi mới bắt đầu quá trình chuyển đổi các chuyên gia trong một ngôn ngữ, họ bắt đầu sử dụng thành ngữ thích hợp trong ngôn ngữ nước ngoài. | This page intentionally left blank From the Library of Wow eBook 3 I Expressing Designs in C Beginners using a foreign human language can manage to communicate. They know the words and they can piece them together to get their point across. As beginners transition to experts in a language they begin to use the proper idioms in this foreign language. The language becomes less foreign and the person begins speaking more efficiently and more clearly. Programming languages are no different. The techniques you choose communicate your design intent to the developers who maintain extend or use the software you develop. C types all live inside the .NET environment. The environment makes some assumptions about the capabilities of all types as well. If you violate those assumptions you increase the likelihood that your types won t function correctly. The items in this chapter are not a compendium of software design tech-niques entire volumes have been written about software design. Instead these items highlight how different C language features can best express the intent of your software design. The C language designers added language features to more clearly express modern design idioms. The distinctions among certain language features are subtle and you often have many alternatives to choose from. More than one alternative might seem best at first the distinctions show up only later when you find that you must enhance an existing program. Make sure you understand these items well and apply them carefully with an eye toward the most likely enhancements to the systems you are building. Some syntax changes give you new vocabulary to describe the idioms you use every day. Properties indexers events and delegates are examples as is the difference between classes and interfaces Classes define types. Interfaces declare behavior. Base classes declare types and define common behavior for a related set of types. Other design idioms have changed because of the Garbage Collector. .

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.