Sign In
VB.Net and other things
VB.Net
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Introduction to Queries. Iterative Design approach.
Archive
Archives
June 2007
(7)
February 2007
(2)
January 2007
(3)
October 2006
(1)
May 2006
(2)
April 2006
(2)
June 2005
(5)
January 2005
(2)
October 2004
(1)
September 2004
(1)
March 2004
(3)
MSDN Blogs
>
VB.Net and other things
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
VB.Net and other things
Projecting in more details (single, multiple items, anonymous types)
Posted
over 5 years ago
by
VladimirSadov
0
Comments
One interesting aspect of VB queries is that you can select multiple values. When you do this, the values get combined into an anonymous type. “Anonymous types” is a new feature for VB9. Essentially an anonymous type is a class that contains one or more...
VB.Net and other things
Flattening a nested list using queries.
Posted
over 5 years ago
by
VladimirSadov
0
Comments
This seems to be a common question - " I have a list of lists (or array or arrays), how can I flatten it into a single list/array? " It is surprisingly trivial to do with queries. It takes one line of code - Module Module1 Sub Main() 'create...
VB.Net and other things
Adding more operators with Where as an example ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
0
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/06/07/query-pattern-composability-query-design-continued.aspx As you might have seen queries have a lot more...
VB.Net and other things
Delayed Execution ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
1
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/06/07/query-pattern-composability-query-design-continued.aspx Here is another important example of a queryable...
VB.Net and other things
Scalar queryable example ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
0
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/06/08/generic-queryable-example-query-design-continued.aspx Here is one more example of a queryable type...
VB.Net and other things
Generic queryable example ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
1
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/06/07/query-pattern-composability-query-design-continued.aspx Here is another example of a queryable collection...
VB.Net and other things
Query pattern, Composability ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
3
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/02/19/polymorphic-selector-and-extension-methods-query-design-continued.aspx Here I want to summarize what...
VB.Net and other things
Polymorphic selector and Extension methods ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
1
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/02/05/query-expression-query-design-continued.aspx So far we have followed design decisions for the language...
VB.Net and other things
Query expression ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
6
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/01/30/representing-the-user-code-by-delegates-query-design-continued.aspx In the previous posts we have designed...
VB.Net and other things
Representing the user code by delegates ( Query Design continued ):
Posted
over 5 years ago
by
VladimirSadov
1
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/01/22/generic-implementation-of-iterateandapply-query-design-continued.aspx Lets’ now consider the implementation...
VB.Net and other things
Generic implementation of IterateAndApply ( Query Design continued):
Posted
over 5 years ago
by
VladimirSadov
1
Comments
This post is a part of a series of posts about query design. For the previous post see: http://blogs.msdn.com/vladimirsadov/archive/2007/01/14/reusability-is-the-reason-to-have-queries.aspx So far we have a pretty good implementation of IterateAndApply...
VB.Net and other things
Reusability is the reason to have Queries.
Posted
over 5 years ago
by
VladimirSadov
1
Comments
Programmers do not like writing the same code over and over again. There are many reasons for this. First of all it is not productive. Secondly it is often hard to maintain as similar code pieces often require same changes. Copying code within a big project...
VB.Net and other things
How to do a Join in VB.
Posted
over 6 years ago
by
VladimirSadov
0
Comments
Well, if you are using May CTP, then there is only one kind of Join operations that you can do in VB - cross-join. The syntax for performing cross-join of two collections follows: Dim arr1 = New Integer () {1, 2, 3} Dim arr2 = New String () { "Hi...
VB.Net and other things
Can I put CDATA inside a CDATA node?
Posted
over 6 years ago
by
VladimirSadov
0
Comments
Well. The answer is no. CDATAs cannot be nested in general. The nested CDATA terminating sequence will terminate the outer CDATA. However there is a trick where you can put CDATA in two consequitive CDATA sections. It works by splitting the terminating...
VB.Net and other things
Factorial in VB 9.0 using closures.
Posted
over 6 years ago
by
VladimirSadov
0
Comments
You cannot declare a closure directly in VB right now, however in the last CTP verion of VB 9.0 you can create some closures indirectly using quries syntax. The following is by no means is an effective implementation of factorial function :-) , but...
VB.Net and other things
Another way to find duplicates in two strings.
Posted
over 6 years ago
by
VladimirSadov
1
Comments
I think the LINQ way is a way more expressive compared to the loops although conceptually they do the same thing. Function LINQ( ByVal arr1 As String (), ByVal arr2 As String ) As String () Dim duplicates = From s0 In arr1, s1 In arr2 _ ...
VB.Net and other things
Have you ever said "not today"?
Posted
over 6 years ago
by
VladimirSadov
Well, that is how you may have no posts for long time.... :-)
VB.Net and other things
Running V1.1 and V1.0 apps in 64bit mode.
Posted
over 7 years ago
by
VladimirSadov
0
Comments
As you may noticed from my previous post loader treats v1.0 and v1.1 managed executables as 32bit only regardless of the ILONLY flag. The main reason for this is that before v2.0 there was no way to express that an executeble has or does not have dependencies...
VB.Net and other things
Loading platform neutral (anycpu) executables on 64bit machine.
Posted
over 7 years ago
by
VladimirSadov
0
Comments
Just like other Windows executable files Managed code is stored in PE format. To be more precise it can use PE (32bit) or PE+ (64bit) formats. In unmanaged world the format of the executable tells the loader whether to run the image as 64 bit or 32...
VB.Net and other things
Implementing Using from simpler parts.
Posted
over 7 years ago
by
VladimirSadov
0
Comments
Using is a very convenient language element. When I have to write something that should be compilable by older version of the compiler, "Using" is one of the new features that I really miss. Here is an example how to achieve the same behavior without...
VB.Net and other things
Example for my previous post
Posted
over 7 years ago
by
VladimirSadov
0
Comments
So here is an example how you can create a Nullable(Of Nullable ...)) type via indirection if Nullable were allowed to be passed to an As Structure type argument: 'in ClassLibrary1.dll you have this: Public Class cls1( Of T As Structure ) Function...
VB.Net and other things
Why Nullable cannot be passed to an “As Structure” type parameter.
Posted
over 7 years ago
by
VladimirSadov
0
Comments
Here is an interesting experiment: Class cls1( Of T As Structure ) End Class Module Module1 Sub Main() Dim v As cls1( Of Nullable( Of Integer )) End Sub End Module We all know that Nullable(Of T) is a structure. However the...
VB.Net and other things
So, after all, can 32bit code call into 64bit code?
Posted
over 7 years ago
by
VladimirSadov
1
Comments
Q: A 32bit app, can run on a 64bit OS, so it must be able to access 64bit, right? So can a 32bit app access my 64bit library component/library/dll. Should I test this scenario? Short answer is “most likely no”, the long answer is: Communication between...
VB.Net and other things
64bit Framework documentation on MSDN.
Posted
over 7 years ago
by
VladimirSadov
0
Comments
MSDN has started adding documentation about .Net on 64bit platforms. Here is the link: http://msdn.microsoft.com/netframework/programming/64bit/default.aspx Do not say you have not seen it. :-)
VB.Net and other things
Why CLR is two-in-one on 64bit platform
Posted
over 8 years ago
by
VladimirSadov
0
Comments
As I mentioned in my previous post when we install .Net framework on a 64bit machine we put both 32 bit and 64 bit runtimes on it. A reasonable question is “Why do we need 32 bit runtime on a 64 bit machine?”. The answer is “To enable your .Net app to...
Page 1 of 2 (29 items)
1
2