Browse by Tags

All Tags » 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: , , , ,
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: , , , ,
XML is very flexible and somewhat permissive in what it allows. Consider this piece of XML:       el = < item > some values < first > one </ first >< second > two </ second ></ item >  ...
with no comments
Filed under: , , , ,
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: , , , , , ,
Check out the msdn subscriber homepage .  S   P1 for Visual Studio 2008 English is about 830 MB… downloading at present   :)   Then I can install SQL 2008 :)
with no comments
Filed under: , , , ,
Lucian has kicked off the conversation on generic variance in VB , so I thought I’d write a few posts outlining my perspectives on the subject… the first of which is this one, and what better place to start than to question whether or not it is really...
5 comment(s)
Filed under: , , , , ,
This post has been sitting in my drafts for a while, so I thought I should post it, mainly because I want to talk about this and generic variance and arrays in more detail in the days ahead.  The reason this post was put on hiatus was I was waiting...
5 comment(s)
Filed under: , , , , ,
It seems apparent that with computers as we currently know them, processors are now set to scale out not up.. that is, clock speeds aren’t rapidly growing, and certainly not doubling every year or two, instead the number of processors on a chip is. ...
4 comment(s)
Filed under: , , , ,
I was just reading a work around for timestamps with LINQ or WCF, and I must be stupid, but I just don't get it. In fact, ever since dotnet came out mapping timestamp to a byte array or SqlBinary, I never got why they did that. Timestamp is 8 bytes...
with no comments
Filed under: , , ,
Obviously Paul thinks just because he used one of my photos and then said nice things about my photos, that I'll probably link to his demo of synclinq in silverlight . ;)
with no comments
Filed under:
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...
with no comments
Filed under: , , ,
Does VB need prefix and postfix increment and decrement operators ? Here's an example I posted today for a question on adding an index with LINQ: Sub Main() Dim values() As String = { "aaa" , "bbb" , "ccc" } Dim index...
5 comment(s)
Filed under: , , ,
If you want to download the videos to watch later, or to happily play them faster, skip ahead etc, then you can grab the .wmv files instead of having to watch them in a browser in silverlight. I like to increase the play speed in parts and silverlight...
6 comment(s)
Filed under: , , , , ,
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...
Filed under: , , ,
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...
with no comments
Filed under: , , , ,
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...
1 comment(s)
Filed under: , , ,
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...
3 comment(s)
Filed under: , , ,
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...
1 comment(s)
Filed under: , , , ,
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...
with no comments
Filed under: , , , ,
More Posts Next page »