Programming | Specification continued third, this article is IDesign C # Programming specification Chapter Three.
3 Project setup and project structure
Project Settings and Project Structure
1. The project is always established with a Level 4 warning (figure).
Always build your project with warning Level 4
2. Warnings as errors in the release (note that this is not the default setting for Vs.net) (figure).
Treat warning as errors in Release buil
Code-code 5 resource Resource
5.1 Programming. NET Components
by Juval Lowy, O ' Reilly 2003
isbn:0596003471
5.2 The. NET Master Class
Authored by Juval Lowy, this world acclaimed intense class covers everything, from. NET Essentials to the application Eworks and system programming.
More info at www.idesign.net
5.3 The IDesign Code Library
The IDesign code library contains more than a hundred demos, tools a
Code | Code cont. Second, idesign C # code specification three.
34. Avoid using the new inheritance modifier, but use override.
Avoid using the new inheritance qualifier. Use override instead.
35. For unsealed classes, the public and protected methods are always marked as virtual.
Always mark Public and protected methods as virtual in a non sealed class.
36. Never use unsafe code unless it involves interoperability.
Never use unsafe the code unless w
[Transferred from http://blog.csdn.net/zlei12/]IDesign released the C # programming specification. The chicken shooter downloads and browses the code from Only4Gurus and is determined to take the time to translate the code for better learning.
The directory content is as follows:
1. Naming rules and styles2 encoding Convention3. Project Settings and Structure4 Framework special guide4.1 Data Access4.2 ASP. NET and Web Service4.3 serialization4.4 Multi
Programming | Specification IDesign released C # Programming specification, chick shooter from Only4gurus Download Browse determined to take time to translate, to better learn.
The contents of the directory are as follows:
1 naming rules and styles naming conventions and style
2 Coding Convention Coding practices
3 Project setup and structure project settings and Structure
4 Framework Special Guidance framework specific guidelines
4.1 Data access
4.
Programming | One of the specifications, chick shooter went on to translate the IDesign code code to the second chapter of the front.
2 Coding Conventions
Coding practices
1. Avoid placing multiple classes in a single file.
Avoid putting multiple classes in a single file.
2. A file should provide a type only for one namespace. Avoid having multiple namespaces in the same file.
A single file should only contribute types to a single namespace. Avoid
"Data Recovery failure description"Company financial personnel for data maintenance, misoperation, in the financial software to initialize the data, because recently did not do backup, it caused a lot of financial documents lost.Because the financial data is very important, the customer is anxious to get back.The data Recovery Analysis "Engineer detection, in SQL Server database Enterprise Manager, discover what the
coding | specification 4.3 serialization serialization
1. Always mark classes that are not encapsulated as [Serializable]
Always Mark non-sealed classes as serializable.
2. Always mark the deserialized member variable to [non-serializable]
Always
Code | Code 4.6 Security
1. Always publish code with a strong name that is private to the application and is public to you.
Always demand your own strong name on assemblies and components "are private to" application, but are public (so tha T only
Code | Specification 4.5 remote Operation Remoting
1. Prefer to use a management configuration (configuration file) instead of using program autoconfiguration.
Prefer administrator configuration to programmatic configation.
2. Always complete the
Software Engineering-software testing, Software Engineering Software Testing
After the system is complete, it is time to test the system. This must have been the first system of acceptance. We are confident that the system will be accepted by the master. Once it comes to the master, nothing will happen, in addition, so
Code | Four, the rest day turned very little, but finally in keep doing,:-)
4 Special guidance of the framework
Framework Specific Guidelines
4.1 Data access
Data Access
1. Always use a type-safe dataset or datasheet. Avoid using the original
Code 4.7 Enterprise Services Enterprise Service
1. Do not catch exceptions in the transaction method. To use the AutoComplete property.
Don't catch exceptions in a transactional method. Use the AutoComplete attribute.
A) Chapter 4 in COM and. NET
Code | Specification 4.4 Multi-thread multithreading
1. Application of synchronization mechanism space.
Use synchronization Domains. Chapter 8 in programming. NET components.
Avoid manual synchronization mechanisms that should lead to deadlocks and
In the past, I have read many articles about the top ten essential tools for developing common professional software such as. NET and. Net programmers. Today, I don't want to introduce these professional software. I want to introduce some auxiliary software that is often used during development to help us complete better development.
I recommend commonly used a
period, the CS is not, other industries worse. When the economy improves, CS lead. There's a representative billionaire who says, "Software will swallow the world." human beings just develop software, let the software command the machine, all other working bots will help you. You are the mouth cannon, these rich people use their own huge amount of money
Software can be roughly divided into: Free Software and non-free software
Types of Free Software and non-free software.The following are some terms that are frequently mentioned when discussing free software. They explain which types overlap with others or are part of o
It takes more than two years to develop programs!
Make a small summary!
Status Quo,
At present, many software companies in China are still working in small workshops!
After receiving a project, let's discuss how to do it. After the boss decides to make a decision, let's split our heads!
As a result, a project started, and everyone was busy in the early stage!
Everyone has their own jobs (some companies are unevenly allocated. If there are idle people,
Tags: is system dependent upgrade ref Adobe Inux Director dir
Most of our Linux system is a Linux manufacturer's system, so these vendors can compile some software to provide users to download, the user after downloading can be installed directly, thus eliminating the compilation of the source code and the process of various problems. At this point we can use the appropriate software manager to ope
1. An error occurred in the Software Center when I deployed the software before. (I have no problem with the configuration)
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/0E/wKioL1RJ9DiDXYC5AAPVOD6oVpE212.jpg "Title =" 1.jpg" alt = "wkiol14259didxyc5aapvod6ovpe212.jpg"/> error message: there is no space for downloading software. The download si
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.