View Single Post
  #25 (permalink)  
Old September 27th, 2007, 04:09 AM
jimibt jimibt is offline
Friend of Wrox
 
Join Date: Mar 2007
Location: Creetown, UK
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

yes, it's a shame that there are so many quirks between the vb and c# core functionality. one thing i 'loved' in vb (not sure if it's included in vb.net) was the with block. this really made the coding quite compact and 'elegant' (my word for today). for example, it'd be nice to be able to do this in c#

    with objDatasource
        .ID = "myID2;
        .EnableCaching =false;
        with .Page
            .ErrorPage= "somepage";
            .SkinID="someskin";
        end with
    end with

of course, you can't. maybe in a future revision we'll see this. this is probably the only language feature that i 'miss' in c#.

jimi

http://www.originaltalent.com