Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • IntPtr gets operators !!!

    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   this is great when dealing with offsets etc...
    Posted to @ Head by bill on Wed, Nov 4 2009
    Filed under: Filed under: , , , , ,
  • Iterators: a flag for simplification ?

    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 article is often the use of iterators in C# code...
    Posted to @ Head by bill on Mon, Apr 20 2009
    Filed under: Filed under: , , , ,
  • Microsoft: make VB like C#

    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# quite well; they choose VB knowing both.  Whereas...
    Posted to @ Head by bill on Thu, Mar 19 2009
    Filed under: Filed under: , , , ,
  • String.IsNullOrEmpty : update on that nasty null reference exception

    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.  Well since then, due to popular demand on the connect...
    Posted to @ Head by bill on Tue, Mar 10 2009
    Filed under: Filed under: , , , , , , ,
  • Snippet Editor 2.1 screen-cast

    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)
    Posted to @ Head by bill on Thu, Feb 5 2009
    Filed under: Filed under: , , , , , , , ,
  • New release of Snippet Editor

    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” button to this blog, and on the codeplex site...
    Posted to @ Head by bill on Tue, Feb 3 2009
    Filed under: Filed under: , , , , , , , , ,
  • Iterators in VB 10 ?

    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 IEnumerable<String> Lines( this TextReader...
    Posted to @ Head by bill on Mon, Feb 2 2009
    Filed under: Filed under: , , , , , ,
  • VB.Net and splash screens

    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 is however a quirk with it sometimes . Whilst testing...
    Posted to @ Head by bill on Mon, Jan 19 2009
    Filed under: Filed under: , , , , ,
  • Extension methods and Interfaces.

    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 inheritance. So although you could use...
    Posted to @ Head by bill on Wed, Jan 14 2009
    Filed under: Filed under: , , ,
  • So what is a “Library” ?

    Earlier I posted what I hope wetted your appetite for some more info about Libraries in Windows 7.  So  what are libraries you ask//I ask ;) Well I hope the following provides some insight.  caveat emptor: this is still just my first impressions ! A Library is really a view of different...
    Posted to @ Head by bill on Sun, Jan 11 2009
    Filed under: Filed under: , , , ,
  • XSD’s in Visual Studio: Past, Present and Future.

      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 could have sworn there use to be.  To clear...
    Posted to @ Head by bill on Mon, Dec 29 2008
    Filed under: Filed under: , , , , , , ,
  • Snippet Editor is now on CodePlex

    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 :)
    Posted to @ Head by bill on Sun, Dec 28 2008
    Filed under: Filed under: , , , , , , , ,
  • List transactions

    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 you call commit (kudos to Duncan for the idea...
    Posted to @ Head by bill on Thu, Dec 18 2008
    Filed under: Filed under: , , , ,
  • VB Snippet Editor

    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, folks wanting to add some features, a bug on XP 64...
    Posted to @ Head by bill on Mon, Dec 8 2008
    Filed under: Filed under: , , , , , , ,
  • What does VB 10 have ?

    To answer what is in VB 10, have a look at the document on the vb futures site .  Basically the list is removal for the need of the line continuation character in many places, collection and array initializers, multi statement lambdas, and generic variance. I decided to look back at my brief wish...
    Posted to @ Head by bill on Tue, Nov 11 2008
    Filed under: Filed under: , , , ,
  • Making tuples more friendly

    Via Don Box’s blog , I found the preliminary code for a tuple at CodePlex . The tuple is a simple structure containing in this case two values: a double tuple.  It basically looks like this :   Structure Tuple( Of TFirst, TSecond)      Public Property First() As TFirst   ...
    Posted to @ Head by bill on Mon, Sep 8 2008
    Filed under: Filed under: , ,
  • Unsubscribing events: How VB Handles it

    Davy Brion posted about how events can keep object references alive.  In C# to rid yourself of this issue you have to manually unwire any event handler you wired.  In VB, it is a lot easier, all you have to do is use WithEvents and set the variable to nothing. This code is the VB version of...
    Posted to @ Head by bill on Thu, Aug 21 2008
    Filed under: Filed under: , , , ,
  • WPF Toolkit on CodePlex

    In case you haven’t seen it, Microsoft is releasing tools for WPF out of cycle as part of the WPF toolkit . Current release includes a CTP of a Data Grid, and a Date Picker and Calendar is planned.
    Posted to @ Head by bill on Mon, Aug 18 2008
    Filed under: Filed under: , , , ,
  • Generic Variance Part1 : Do you really need it ?

    Lucian has kicked off the conversation on generic variance in VB , so I thought I’d write a few posts outlining my perspectives on the subject… the first of which is this one, and what better place to start than to question whether or not it is really needed…… Generics came to .NET after the base framework...
    Posted to @ Head by bill on Sun, Aug 10 2008
    Filed under: Filed under: , , , , ,
  • Generic variance and List(Of T)

    This post has been sitting in my drafts for a while, so I thought I should post it, mainly because I want to talk about this and generic variance and arrays in more detail in the days ahead.  The reason this post was put on hiatus was I was waiting for my article on arrays to appear in Visual Studio...
    Posted to @ Head by bill on Thu, Aug 7 2008
    Filed under: Filed under: , , , , ,
Page 1 of 3 (56 items) 1 2 3 Next >