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 ~~~