C# Coding convention

  • Người chia sẻ :
  • Số trang : 5 trang
  • Lượt xem : 8
  • Lượt tải : 500
  • Tất cả luận văn được sưu tầm từ nhiều nguồn, chúng tôi không chịu trách nhiệm bản quyền nếu bạn sử dụng vào mục đích thương mại

NHẬP MÃ XÁC NHẬN ĐỂ TẢI LUẬN VĂN NÀY

Nếu bạn thấy thông báo hết nhiệm vụ vui lòng tải lại trang

Bạn đang xem trước 20 trang tài liệu C# Coding convention, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD LUẬN VĂN ở trên

1. Introduction This document is specified for SWT’s developers who will attempt to a C# project development. The developers should read this specification for standardization coding style and understandable for other teammates. After all, it could make your project more standard and professional. Note that, this document just specified with C# Language. 2. Coding Conventions 2.1. Terminology and Definition Access Modifier C# keywords public, protected, internal, and private declare the allowed code-accessibility of types and their members. Although default access modifiers vary, classes and most other members use the default of private. Notable exceptions are interfaces and enumerate which both default to public. Camel Case: A word with the first letter lowercase, and the first letter of each subsequent word-part capitalized. Example: customerNameAndThings Pascal Case: A word with the first letter capitalized, and the first letter of each subsequent word-part capitalized. Example: CustomerNameAndThings Always : It must be follow this specification as a law. Avoid: It should be avoid use this specification. In worst, it could be use. Never: Every exceptions of this case is not allowed. Possible: It recommend follow this specification.