Browse by Tags

All Tags » .NET (RSS)
This seems so incredibly long overdue, but at last as of .NET 4, IntPtr has + and – operators added to it !! This means you can now easily write code such as :     Dim ptr As IntPtr     . . . .     ptr += 4...
If you’ve got Windows 7 installed, the Windows Virtual PC for Windows 7 is now on MSDN subscriber downloads !!! I had the Release Candidate (RC) installed, so had to uninstall that first and reboot before installing the RTM release. All worked perfectly...
First the good news : The February release of the Snippet Editor has now had 10,000 downloads ! Now for bug fix news: There were a couple of issues with the paths per language.  A problem with Express Editions of Visual Studio occurred due to partial...
Well if you mark your methods as being void from the outset …….
2 comment(s)
Filed under: , , ,
Recently I got this email from Ted: Hi Bill! Love the snippet tool, it's great! I'm curious, what tool did you use to produce the screencast for the tool? The quality is awesome! Thanks a lot! Kind regards, Ted The answer to that is I used Camtasia...
A couple of months ago I blogged about iterators in VB (or the lack there-of), and pointed folks to an article I wrote for Visual Studio magazine that provides snippets and templates to help with iterators in VB . One of the things I talk about in that...
with no comments
Filed under: , , , ,
I was reading yet another VB versus C# rant: I don’t want to get sucked into wading into that, but I will say that anyone who thinks folks that use VB can’t use C# has really got things back the front.  Most people who use VB can read and write C#...
7 comment(s)
Filed under: , , , ,
Back in April 2006, I blogged about a nasty JIT compiler optimisation that would cause String.IsNullOrEmpty to throw a null reference exception;  ironic really given that is the very thing you’d use the IsNullOrEmpty method to check against. ...
with no comments
Filed under: , , , , , , ,
VB has a lot of high level features other .Net languages, in particular C# don’t.  Sadly these are often overlooked by some developers because other languages like C# don’t have them – the lowest common denominator syndrome.  This is sad because...
with no comments
Filed under: , , ,
I’ve just uploaded a new screen cast: Snippet Editor Tips and Tricks Enjoy :) (oh and don’t forget the “ buy me a beer ” button)
Snippet Editor 2.1 is now released on codeplex: http://www.codeplex.com/SnippetEditor   Apart from the few minor bug fixes, it includes improved search and now support for Visual Studio 2010 as well as 2008 and 2005. I’ve also added a “buy me a beer...
Although VB 10 won’t have a formal syntax for iterators, it will have all the necessary ingredients to easily write iterators. In VB10 you can use a generic template and multi line lambdas to create iterators. This iterator in C# :   static public...
3 comment(s)
Filed under: , , , , , ,
One of the nice things about the My application framework in VB.NET is the ability to easily show splash screens.  The splash screen is displayed using a separate thread and by default will close when your main form’s Load event is called. There...
3 comment(s)
Filed under: , , , , ,
A comment by Joe Duffy on the Framework Guidelines for Extension says : Extension methods can also be used to provide actual concrete method implementations for interfaces. And this is a very important point. In .NET there is no support for multiple implementation...
with no comments
Filed under: , , ,
XML is very flexible and somewhat permissive in what it allows. Consider this piece of XML:       el = < item > some values < first > one </ first >< second > two </ second ></ item >  ...
with no comments
Filed under: , , , ,
  When I was going through the snippet editor code to put it on CodePlex, I wanted to grab a screen shot of the snippet schema.  immediately I was confronted with there being no visual designer for schemas in VS 2008, but the worse part was...
I’ve just finished uploading the Snippet Editor to CodePlex http://www.codeplex.com/SnippetEditor It includes some minor bug fixes from the previous release. Enjoy :) And Merry XMas :)
From a recent discussion on using lists, and whether or not you can remove items in while iterating, I decided to write an extension that allows you to get a “transaction” for an IList(Of t).  This ListTransaction(Of T) caches adds and removes until...
6 comment(s)
Filed under: , , , ,
Over the last week I’ve got a sudden influx of emails about the Snippet Editor.  I’m figuring this is stemming from Lisa’s recent blog entry and her tips and trips for VS 2008 presentation :)  Some of the emails have been really nice praise...
you can tell from the title there’s a Friday rant coming can’t you ?  Well yeh, sometimes what should be a simple task of writing code becomes painstakingly slow.  Take for example this one line of code:   Dim doc = XDocument.Load( "abc...
with no comments
Filed under: , , , , , ,
More Posts Next page »