Anyone who has used VB.net knows that the system providesCodeA lot of sections are also very practical, and the database-related code segments make me more comfortable. You should directly right-click to insert the code segment when writing the connection string, instead of looking for long characters, then copy the connection string in the automatically generated code. But when I got to C #, I found that this code segment provided too little. If I didn't use VB.net's C #, I would think this code segment was useless. Indeed, if you rely on the code segments provided by default, they are dispensable and have no effect. Therefore, to make the C # code segment function a climate, you can only download additional code segments. In fact, Microsoft provides code snippets for download. You only need to download and install them there, so that the C # code snippet function can be removed from the teeth.
Http://msdn.microsoft.com/zh-cn/vstudio/aa718338.aspx URL as follows
First, open the above URL and you will see the Chinese section "Download all C # code segments". Click.
Next he will go to a http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx
However, the content is the same. So you continue to click "download all the C # code snippets.
He will go to a URL like a protocol, http://msdn.microsoft.com/en-us/cc507827.aspx
Click "I accept" at the bottom of the page.
Then you can download it. Http://download.microsoft.com/download/9/ B /d/9bdf1a68-72bc-4131-a166-6cfde37a10af/Code_Snippets.msi
The download is an installation.ProgramAfter the installation, I opened vs. Unfortunately, I found that there were not many C # code segments. Why?
Later I found the directory for installing those things and copied it to c: \ Documents ents and Settings \ Administrator \ My Documents ents \ Visual Studio 2005 \ code snippets \ Visual C #
Next, try again and find that there are more code segments. The only pity is that all are in English.