Download presentation
Presentation is loading. Please wait.
1
BabulalK @ G-C-I.COM Visual Studio 2005 Code Snippets
2
What the heck is this? BabulalK @ G-C-I.COM
3
Code Snippets 1.IntelliSense Code Snippets are reusable. 2.Task-oriented. Are blocks of code. Visual Studio 2005 includes code snippets covering tasks ranging from creating a custom exception, to sending an e-mail message, to drawing a circle.
4
BabulalK @ G-C-I.COM Code Snippets Or Ctrl + K, X
5
BabulalK @ G-C-I.COM Code Snippets – Demo 1
6
BabulalK @ G-C-I.COM Creating Custom Code Snippets 1. 2. Two Elements Singleton Code snippet singleton class Babulal K R Expansion
7
BabulalK @ G-C-I.COM Sub-element to specify the basic code. Contains 4 sub elements like -- To add assembly references. -- To import the Namespaces. -- Define the variables or type. -- Info for Code generation. Continued…
8
BabulalK @ G-C-I.COM System.dll System.xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 OR Demo…
9
BabulalK @ G-C-I.COM System. Collections Demo…
10
BabulalK @ G-C-I.COM type Property type String property Property name MyProperty field The variable backing this property _myPropertyr Demo…
11
BabulalK @ G-C-I.COM <![CDATA[private $type$ $field$; public $type$ $property$ { get { return $field$;} set { $field$ = value;} } $end$]]> Language supported CSharp VB VJSharp XML
12
BabulalK @ G-C-I.COM Demo
13
BabulalK @ G-C-I.COM Q & A
14
BabulalK @ G-C-I.COM More reading… 1.http://msdn2.microsoft.com/en-us/library/9ybhaktf(VS.80).aspx.http://msdn2.microsoft.com/en-us/library/9ybhaktf(VS.80).aspx 2.http://msdn2.microsoft.com/en-us/vstudio/aa718338.aspxhttp://msdn2.microsoft.com/en-us/vstudio/aa718338.aspx 3.http://www.developer.com/net/vb/article.php/10926_3505156_1http://www.developer.com/net/vb/article.php/10926_3505156_1 4.http://dotnetjunkies.com/Article/C95AC204-DE44-4D4A-A2B7-1EB1BE14A8A1.dcikhttp://dotnetjunkies.com/Article/C95AC204-DE44-4D4A-A2B7-1EB1BE14A8A1.dcik And of-course in my blog http://bazu.wordpress.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.