1 / 8

Extensions in Visual Studio .Net 2008

Extensions in Visual Studio .Net 2008. Using Visual Basic By Jim Fouch Fouch Software. Extensions in Visual Studio .Net 2008. What are Extensions? Why should I care? How can they help me as a developer? What are the prerequisites and how do I Implement Extensions? Examples Pitfalls.

ailish
Download Presentation

Extensions in Visual Studio .Net 2008

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Extensions in Visual Studio .Net 2008 Using Visual Basic By Jim Fouch Fouch Software

  2. Extensions in Visual Studio .Net 2008 • What are Extensions? • Why should I care? • How can they help me as a developer? • What are the prerequisites and how do I Implement Extensions? • Examples • Pitfalls

  3. Extensions in Visual Studio .Net 2008 • What are Extensions? • Extensions are a way of extending a Sub or Function to all instances of class and any classes that inherit that class.

  4. Extensions in Visual Studio .Net 2008 • Why should I care? • They can save you much effort. • Extensions will help you be more efficient by centralizing your code. • Help you build an easy to implement library of often used Subs/Functions. • Extending the functionality of Classes that can not be inherited such as the String Class. • They are Cool!

  5. Extensions in Visual Studio .Net 2008 • How can they help me as a developer? • Extensions will make your code more manageable, easier to read and understood yourself and others. • Extensions are easily shared by teams because prior knowledge of each Extension is not required. • Intellisense will provide team members with your Extensions when they use Classes you have extended .

  6. Extensions in Visual Studio .Net 2008 • What are the prerequisites and how do I Implement Extensions? • Extensions must exist in a Module • The module must Import the System.Runtime.CompilerServices class • Must define Extended class as first parameter.

  7. Extensions in Visual Studio .Net 2008 • Examples • Exists/DoesnotExist

  8. Extensions in Visual Studio .Net 2008 • Pitfalls • Overloaded Extensions do not show a different Icon in Intellisense. • Use caution when passing the Extended class ByRef.

More Related