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: , , , ,
  • 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: , , , , , ,
  • 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: , , , , , , , ,
  • 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: , , , ,
  • 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: , , , ,
  • 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: , , , , ,
  • Are iterators fundamentally flawed ?

    It seems apparent that with computers as we currently know them, processors are now set to scale out not up.. that is, clock speeds aren’t rapidly growing, and certainly not doubling every year or two, instead the number of processors on a chip is.  As a case in evidence, 2 or 3 years ago, my PC...
    Posted to @ Head by bill on Fri, Aug 1 2008
    Filed under: Filed under: , , , ,
  • Booleans and numerics

    I was reading Kathleen’s post about what a C# developer needs to know about VB and thought I should clarify the bit about Booleans converted to numerics.  A Boolean in VB when converted to an integer type numeric, will be zero or the bitwise Not of zero. This table summarizes the value of True when...
    Posted to @ Head by bill on Sat, Jul 19 2008
    Filed under: Filed under: , , , ,
  • Increment operators ?

    Does VB need prefix and postfix increment and decrement operators ? Here's an example I posted today for a question on adding an index with LINQ: Sub Main() Dim values() As String = { "aaa" , "bbb" , "ccc" } Dim index As Int32 = -1 Dim view = From v In values _ Let x...
    Posted to @ Head by bill on Tue, Mar 25 2008
    Filed under: Filed under: , , ,
  • Windows Live team continues insults at VB'ers ...

    After my post about the first set of insults from the Windows Live team and the Search API samples, it was nice to see some VB samples released. Sadly though they were just the C# samples run through an automated tool. I mean look at this bullshit code from them : Select Case searchFlagsValue Case 0...
    Posted to @ Head by bill on Tue, Mar 11 2008
    Filed under: Filed under: , , , , , ,
  • C# (4.0 ?) and dynamic lookups

    Kudos to Charlie Calvert for opening up the discussion of C# future features to the public (sure would be nice if the VB team did likewise). In the first post on future features , Charlie talks about dynamic lookups in C# .... Although the catchy term "Dynamic" is used here, there is in fact...
    Posted to @ Head by bill on Sat, Mar 8 2008
    Filed under: Filed under: , ,
Page 1 of 1 (16 items)