Browse by Tags
All Tags »
LINQ »
Orcas (
RSS)
Paul Stovell finally notices the lack of support for statement lambdas in VB9 . Unfortunately Vb9 only supports lambda expressions such as can be expressed in today's expression trees. .NET 4.0 will most probably include support for lambda statements...
in VB 2008 you get a great intellisense experience when working with XML axis properties if you add the schema(s) to your project. You don't need to add the actual schema, you can just add a link. From the Project menu select Add Existing Item, browse...
Visual Studio magazine's January On VB column, by your's truly, has a quick reference guide to what's new in VB 2008 . The guide includes links to earlier articles that provide more in depth information on specific features. Errata for my...
A couple of weeks ago I wrote about XML Namespace issues in VB: one in particular was to do with namespace declarations being repeated in the output X ML. In those cases we only looked at common namespaces for the entire document. However the example...
I was catching up on reading some msdn blogs and stumbled across an entry from Yves Dolce. Yves was showing how to create a word document part including a graphic . Thing was, he was using C#, not VB. Here's an example : var graphic = new XElement...
RJ posted an interesting entry about LINQ to XSD. The early LINQ to XSD bits that surfaced back in Orcas Beta 1 or thereabouts were basically an object layer of the underlying xml data. It was better than *just* an object model in that much of the XElement...
If you programmatically add attributes with namespaces to an XElement, when the XElement is written out it will give each attribute a namespace prefix and then define a xmlns for that prefix. The way XElement does this is first it examines the namespaces...
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...
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 :)
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...
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...
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.
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...
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...
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...
Yesterday Beth posted an interview with Erik Meijer showing integrated support for XML in VB. There's a cool examples of using VB9 with XML documents both working with existing documents and creating new ones. Some important things to note in the...
Beth and I have been having a argument all in fist fight discussion about dynamic code in VB. My point to Beth in the discussion was that all the code she showed could in fact be made work reasonably easily with Strict On, such is the power of the CallByName...
I was just reading Roger Jennings blog and note he logged a bug in Orcas . What scared me was the response Roger got. It seems his bug was acknowledged pretty quickly, and some 5 hours later they said : Thanks for your feedback. We have reproduced this...
More Posts
Next page »