Take the 2-minute tour ×

I'm arguing with one guy about linq in visual basic.He shows linq expressions in vb,but I can't be sure if it's managed or unmanaged(vb6),because I've never used any of them.

Does VB6 have linq expressions?

share|improve this question
I would stick with calling it vb6 and not unmanaged vb as that is a very misleading term. –  JaredPar Jul 30 '09 at 14:59
Also, be aware that there are more differences between VB6 and VB.Net than one is unmanaged and one is managed. The differences are many and varied, to the extent - that while they might be superficially similar - they are VERY different languages. –  Binary Worrier Jul 30 '09 at 15:00
VB6 does not have linq . . . or class inheritance, Garbage collection, generics, partial classes, strict typing, xcopy deployment, nor the ability to target web sites, web services, windows services, console applications . . . to mention but a few of the many MANY things that VB6 does not have, and one more thing it NEVER had? My love and affection, I worked with it for years, and I never liked it. –  Binary Worrier Jul 30 '09 at 15:08
@Binary Worrier: FWIW Wikipedia lists reference counting as one form of garbage collection. Anyway, if you two want to continue this discussion, can I suggest you move to your blogs or a newsgroup. –  MarkJ Jul 30 '09 at 16:27
@Binary Worm - My first reaction is your posts should be tagged as "Hate Speech" and I even sense you'd agree! Suck it. –  Karl E. Peterson Jul 30 '09 at 23:41

5 Answers 5

up vote 14 down vote accepted

Visual Basic 6 does not have LINQ extensions.

share|improve this answer
+1, correct. Although one of Microsoft's sample videos on NET/COM Interop has a VB6 exe calling a .NET component that uses LINQ. But the answer to the original question is still "NO". channel9.msdn.com/posts/funkyonex/… –  MarkJ Jul 30 '09 at 16:22

VB6 is not related to VB.NET. It's a different language and platform. The two are related in the sense that C and C++ are related.

In particular, VB6 is not an unmanaged form of VB.NET.

LINQ is part of the .NET Framework. VB6 was released in 1998. .NET was released in 2002.

The VB6 IDE is unsupported.

share|improve this answer

Linq is fairly new (Released 2007). Its not supported by VB6 which was released about 1998

share|improve this answer

With version 7 Visual Basic took the step into .NET with managed code and real object orientation, leaving the old unmanaged platform behind. (Well, it was never called unmanaged, as there was no managed code...) Version 9 was released a while a go including LINQ support.

So, no VB 6 doesn't support LINQ.

share|improve this answer

The only way that you can use LINQ and Lambda expressions in VB 6 is to use COM Interop. The performance is still Okay regardless of the time that you need to consider for proxy and translators.

For scenarios that you need to use LINQ and Parallel LINQ(PLINQ) in your VB 6 code, the best solution is to use COM Callable Wrapper(CCW). To learn more, you can read how to expose a .NET COM to a COM client such as VB 6.

share|improve this answer
can you quantify or qualify what you mean by performance still being okay? –  Ryan Gates Oct 29 '12 at 19:18

Your Answer


