Tuesday, November 13th, 2007

So is it best practice to only use C# for SharePoint development?



I found it very interesting to see that the MSDN article Best Practices: Using Disposable Windows SharePoint Services Objects only provides code samples in C#,   can we assume that it is NOT best practice to use VB.Net to develop for SharePoint or is it just the lack of the using Statement that has kept these examples out?

:)

[Update] I was wrong: There is a Using statement in VB.Net

Using site As New SPSite(“http:///portal.company.com”) Using web As SPWeb = site.OpenWeb() Console.WriteLine(web.Title) End Using End Using

Thanks to Paul Liebrand for pointing this out and helping all you VB.Net SharePoint developers to develop using best practice.

Viewing 4 Comments

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus