KnowDotNet NetRefactor

NET Refactor - Strongly Typed Collection

Automate Creation of Strongly Typed Collection

Collections were introduced in VB4, as I recall, and were a great compliment to the new Class object that were introduced in the same version. With the advent of the .NET Framework, you can now create Strongly Typed Collections, which are much more object oriented than regular collections.

You can create your own collection classes by inheriting from one of the many .NET Framework collection classes and adding code to implement your own custom functionality. You can also create a Strongly Typed Colletion automatically in NET Refactor.

To create your own Strongly Typed Collection, simply place the cursor anywhere in a class, VB.NET or C#, for which you want to create a collection, and click the Create Strongly Typed Collection menu option. This option is found under the Rename Menu on the NET Refactor main menu. Once the menu option has been clicked, the Strongly Typed Collection will be created in a new file and the file will automatically be added to the project. The new collection will appear in the Solution Explorer, but it will not be opened automatically.

Writing Add-Ins for Visual Studio .NET
Writing Add-ins for Visual Studio .NET
by Les Smith
Apress Publishing