|
The Yortsoft Visual Studio 2005 Code Snippets package is a set of 'snippet' files
for use with Microsoft Visual Studio 2005. The snippets are generally 'expand' snippets
which allow common or repetative blocks of code, which are not easily re-used via
other coding mechanisms, to be quickly and easily entered into Visual Studio. If
you are not famliar with Visual Studio 2005 snippets, we suggest you
Google them for more information.
This set of snippets is downloaded as a set of zipped .snippet files. We suggest
unzipping these to a folder on your hard drive and then 'importing' the entire folder
once using Visua Studio 2005. Once the folder is imported, any .snippet files copied
into (or deleted from) that folder will be automatically updated by Visual Studio.
This package includes the following snippets;
- dispobj - Expands to create a class definition for an object
that correctly implements the dispoable pattern, including the IDisposable interface,
suppression of the finalisation if disposed prior to the finaliser being called,
use of isDisposing in a common private method to allow only non-managed resources
to be disposed when called from the finaliser and an IsDisposed property.
- propctlapp - Creates an 'appearance property' for use in a (user
or custom) control class. This property comes with XML documentation, the category
attribute applied with a setting of 'Appearance', the set accessor contains an if
condition for checking to see if the value actually changed before calling the Invalidate
method (and any other user code you insert), the description attribute (value set
by snippet variable) and the browesable attribute set to true.
- eventdec - Declares an event using the generic
EventHandler delegate and creates a protected virtual OnEventName for raising the event. Also includes XML documentation for the event and method created.
- invokeself - Creates a method, for use within
a form or control class, which invokes itself if this.InvokeRequired is true, or
executes the required code if this.InvokeRequired is false.
- memberregions - Creates the following 'regions' in the current
code module; Fields, Events, Constructors/Destructors, Public Methods, Public Properties,
Overrides, Private Methods, Event Handlers.
- propc - Creates a property with both get and set accessors, with
an if (oldvalue != value) condition in the set accessor. Also includes XML documentation
for the property created.
Download
the Yortsoft VS 2005 Snippets.
View Yort's blog entry about the VS 2005 Snippets.
For support, feature requests, or comments, see the
Contact Us page.
|