Browse by Tags

All Tags » CSharp (RSS)
The beta of Visual Studio 11 is causing a lot of feedback around the grey shade icons.  The use of colour or not has also brought to the forefront the UI for colour-blind people.  So I thought I’d post a picture of my toolbar, along with some...
with no comments
Filed under: , , , , ,
Hopefully you already know VB has full support for Optional parameters, both declaring them and calling them, but did you know you can use Dates as Optional parameters ?    Public   Sub AddNewCustomer(customer As   Customer , ...
From time to time there’s discussion about the way dates are displayed in the Visual Studio IDE for Visual Basic. Typically dates are shown using VB’s date literal syntax of #MM/dd/yyyy# which is the standard US format. For people outside...
The Silverlight Windows Phone Toolkit August 2011 (7.1 SDK) doesn't contain a working VB sample.  If you try to load the VB sample that does ship, you’ll get hundreds of errors.  So I put together the VB sample that should have shipped....
In the emulator in the tools SDK that is   Still waiting on the actual phone update, but for developers the tools update is now available from: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=49b9d0c5-6597-4313-912a-f0cca9c7d277&displaylang...
with no comments
Filed under: , , , , , ,
So with the recent hype about “KittyHawk”, comes the product: LightSwitch. Jason Sanders has an introducing light switch blog entry up now. It looks good/promising.  The name however is terrible. Searching for it with Google will be a needle in a...
Today I was running windows update on some virtual machines, and noticed that .NET 4 Client Profile is available via windows update.  Seems it was released to windows update in June. For Windows XP the update is optional . For Windows 7 and Vista...
I got an email from a reader last week asking about saving customisations in Visual Studio: Hi Bill I read an excellent article by you http://visualstudiomagazine.com/Articles/2007/12/01/Customize-the-VB-IDE.aspx?Page=1 Just wondering if you know of a...
with no comments
Filed under: , , , , ,
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...
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: , , ,
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: , , , ,
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: , , , , , ,
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 :)
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 »