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, and hopefully at the same time VB10 will have...
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 to the xsd file then do NOT click Add, instead...
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 January column : The web site fails to display &...
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 of creating a word document I posted earlier today...
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 (dm.GetName( "graphic" ), new XAttribute...
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 capabilities remained, but it was still just...
Posted to
@ Head
(Weblog)
by
bill
on
12-05-2007
Filed under: VB, Orcas, LINQ, VB10, VS2008
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 already active and also those defined in the element...
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 once per the document or outer element. The problem...
Posted to
@ Head
(Weblog)
by
bill
on
11-24-2007
Filed under: VB, Orcas, LINQ, VSM, DevCenter, Bug
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 [Namespace]() As String End Class The following code...
Posted to
@ Head
(Weblog)
by
bill
on
11-20-2007
Filed under: VB, Orcas, LINQ, DevCenter, VS2008, Bug
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, info etc. I'll update the web page with...
Posted to
@ Head
(Weblog)
by
bill
on
11-13-2007
Filed under: VB, Orcas, LINQ, Vista, DevCenter, VB10, Snippets