Wriju's BLOG

.NET, Cloud and everything

Patterns for Parallel Programming

WOW!!! When I first saw it.   Patterns for Parallel Programming: Understanding and Applying Parallel Patterns with the .NET Framework 4   http://www.microsoft.com/downloads/details.aspx?FamilyID=86b3d32b-ad26-4bb8-a3ae-c1637026c3ee&displaylang=en   You must must read it!!!   Namoskar!!!  … Read more

VB.NET 10 : Optional Nullable Parameter

If you want to assign Nothing to the optional parameter in VB.NET 10, it is just like to obvious now, Sub Main()     ‘Passing value for the optional parament _age     MyFunc(“Wriju”, “wriju@contoso.com”, 30)       ‘No value is supplied for the optional parament _age     MyFunc(“Writam”, “writam@contoso.com”) End Sub     Sub MyFunc(ByVal _name… Read more

VB.NET 10 : Multiline Lambdas

With implicit line continuation VB.NET 10 now allows you to write the multiline Lambdas. That means like your normal Functions you can write functions under Lambdas. So now you may write like, Dim arrInt As Integer() = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}   Dim myFinc = Array.FindAll(arrInt, Function(n)                                        If… Read more

Parallel Computing: PLINQ

Visual Studio 2010 has new API for LINQ (Language Integrated Query). This helps us to implement the power of Parallel Computing in declarative manner. LINQ without Parallel Extension It will take 3 sec for 28 thousand elements. static void Main(string[] args) {     Stopwatch sw = Stopwatch.StartNew();         DoIt();       Console.WriteLine(“Elapsed = “… Read more