Extension Methods in VB.NET

Last week we took a look at Extension Methods in CSharp.  Today we will continue looking at Extension methods using VB.NET syntax.  It’s obvious by comparing the syntax in VB.NET to the syntax we used in C#, that either there was a strong disagreement as to how to implement Extension Methods syntactically, or the language teams never talk to each other.


The key difference between the implementations is that VB.NET requires you to place the method in a module and attribute the method as an extension method.  Let’s take a look.


Other Related Items:

Canon VB-C50iR Reverse Pan Tilt Zoom Network Camera w/ Built-in Network ServerCanon VB-C50iR Reverse Pan Tilt Zoom Network Camera w/ Built-in Network ServerThe Canon VB-C50iR Reverse-mount Network Video Security Camera is the fast, simple, complete network video solution you've been looking for. It allows... Read More >
Studio Indoor/OutdoorStudio Indoor/OutdoorStudio Indoor/Outdoor Marine Wall Light Bronze with seeded glass Hand rubbed Antique glass & Chrome with clear glass Mfg code(s): SLO2001BZ-SG, SLO2001HAB-CG, SLO2001CH-CG
Regular Expressions CookbookRegular Expressions Cookbook

Whether you're a novice or an experienced user, Regular Expressions Cookbook will help deepen your understanding of the tool. You'll learn powerf... Read More >

Related Post

Comments are closed.

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor