Use free code snippet libraries to speed up your development

Source: Internet
Author: User
I accidentally discovered that some code snippet libraries developed by Microsoft for vs2005 was released on the msdn website, which provided a lot of encapsulated Code Segment, which can be used directly.
They are:
C #: http://msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx
VB. NET: http://msdn.microsoft.com/vbasic/downloads/snippets/default.aspx
Vsto: http://msdn.microsoft.com/office/understanding/vsto/training/snippets/default.aspx

I have downloaded only part C #, a total of 14 categories (application, collections, connectivity, Crystal Reports, database, datatypes, file system, math, OS, refectoring, security, smart devices, Windows Forms, XML) has approximately 300 code snippets.
For example, if you want to use code snippets about smart device, you only need to enter SD in the Code Editor (all the code snippet of smart device starts with SD ), the code snippets starting with SD are automatically listed. For example, you only need to enter sdmemory and press the tab key, the code snippet is automatically generated to query the current available memory of the windows mobile device:[System. runtime. interopservices. dllimport ( " Coredll. dll " )]
Public   Static   Extern   Int Globalmemorystatus ( Ref Memorystatus MS );

[System. runtime. interopservices. dllimport ( " Coredll. dll " )]
Public   Static   Extern   Int Getsystemmemorydivision ( Ref   Uint Lpdwstorepages, Ref   Uint Ldpwrampages, Ref   Uint Ldpwpagesize );

Public   Static Memorystatus getmemory ()
{
Memorystatus memstatus= NewMemorystatus ();
Globalmemorystatus (RefMemstatus );

ReturnMemstatus;
}

Look, it's good .... Haha... A good research study will show that there are a lot of good code snippets you can use ~~~

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.