Browse by Tags

All Tags » DevCenter » LINQ (RSS)
You can view PDC 2010 sessions online at microsoftpdc.com , but you can also download sessions to view later or copy over to your windows 7 phone The sessions info is all online in one nice big XML file : http://videoak.microsoftpdc.com/pdc_schedule/Schedule...
VB 9 or later has a particular feature that can make life easier in some circumstances: the compiler allows you to access indexed items on non indexed enumerables.   Let’s say you have code such as: Dim items as IEnumerable(Of String) . . ....
1 comment(s)
Filed under: , , , ,
If you use XML literals in your code, adding one to another: Dim e1 = <a:books></a:books> dim e2 = <a:book></a:book> e1.Add(e2) You will have the xmlns declaration repeated in each of the elements, when really it is only needed...
12 comment(s)
Filed under: , , , , ,
In VB9, there's a bug when using XML literals with any type member that is a protected keyword. For example, given the following psuedo types, Class Doc Public Property [Imports]() As List( Of DocImports) End Class Class DocImports Public Property...
Just spotted it on MSDN subscriber downloads. Enjoy :)
2 comment(s)
Filed under: , , , ,
I've finally given the Snippet Editor a major make over including a new look. To go with this, I've given it a new home on my web site: http://billmccarthy.com/Projects/Snippet_Editor And I've added a Snippets category to this blog for feedback...
Paul Vick released some statistics in relation to VB , which for discussion sake I'll repeat here : Visual Basic is the #1 .NET language (as reported by Forrester Research) Visual Basic is the #1 downloaded and #1 registered Express Edition (topping...
I got an interesting email today, which, to paraphrase, said: I would like a syntax where I can say “an XElement that follows this XSD" This question actually digs deep into the issue of strong typing versus dynamic typing and what it really is we...
with no comments
Filed under: , , ,
Thanks to Julie's post , I decided to dig deeper into the depths of VB than any sane man should go. While playing with nullable dates in the query, I was wondering why I could get the number of orders with a null ShipDate. I tried: Dim query = From...
2 comment(s)
Filed under: , , ,
Was just reading Julie Lerman's blog and noticed the issue she had wouldn't have happened if Option Strict was on. This really highlights the problem of having implicit conversions occur at runtime.
with no comments
Filed under: , , ,
I just finished writing an article about Expression Trees for Visual Studio Magazine (aka VBPJ ) and there seemed to be some "holes" that I think should be plugged. An expression tree is basically a descriptive way of representing a lambda function...
with no comments
Filed under: , , , ,
VB9 provides intellisense support for XElement if you add the schema to the project and import the relevant namespaces. This is just awesome ! Earlier tonight I wanted a list of shortcuts for all the snippets so I added the snippet schema to the project...
with no comments
Filed under: , , ,
If you've installed the Beta 2 samples for VB Orcas 2008, then you will likely find the solutions don't open. Problem is they are marked as being for "Orcas" not "2008". This quick and dirty code will fix the problem: With...
5 comment(s)
Filed under: , , ,