Wriju's BLOG

.NET, Cloud and everything

VB.NET 10 : PLINQ

LINQ can be more faster with the availability of multi-core desktops. This can be implemented with minimal impact at the code level with existing code. Here how it looks like, Dim arrInt = Enumerable.Range(1, 4000000) Dim q =     From n In arrant     Where (IsPrime(n))     Select n In my dual core machine it… Read more

LINQ to XML : Changing connectionString in app.config

When you create data bind application using wizard in Windows Forms application and connection string gets added to you settings file. Now you may be interested in changing that connection string but problems, 1)     The connection string in settings has an Application Scope so it is ReadOnly property. You modify and remove “ReadOnly” from .vb… Read more

VB.NET 9.0: XML Literal

This is the one feature which can make VB.NET developers feel better than C# folks. I have seen people complaining about MS saying that MS has done lot for C# but not equally for VB.NET. One of the biggest was Refractoring. There are so many such. But this feature is just “SPELLBOUND” when I first… Read more

VB.NET 9.0: Lambda Expression Function

If you want to use Lambda Expression as reusable function, you need to use Func. By using the Func we are actually calling in-build delegate.   So if you write   Dim sqr As Func(Of Double, Double) = Function(x) x * x   Then you can use it in you application to get the square… Read more

MSDN Virtual Labs : C# 3.0, Visual Basic 9.0, ASP.NET 3.5

Learn and for installation-free mode and get started with Visual Studio 2008.   MSDN Virtual Lab: Building Web Applications with Visual Studio 2008 MSDN Virtual Lab: What’s new in C# 3.0 MSDN Virtual Lab: What’s new in Visual Basic 9   Namoskar!!!… Read more