Tags » .NET 4.5

Parallel LINQ in .NET C#: keeping the order

In this post we saw a simple example of PLINQ. We saw that the items are processed in an arbitrary order.

Consider the following:

int[] sourceData = new int;
for (int i = 0; i < sourceData.Length; i++)
{
	sourceData[i] = i;
}

IEnumerable<int> parallelResults =
	from item in sourceData.AsParallel()
	where item % 2 == 0
	select item;

foreach (int item in parallelResults)
{
	Console.WriteLine("Item {0}", item);
}
… 123 more words
C#

In C#, given a DateTime object, how do I get a ISO8601 date in string format? - Stack Overflow

The first bulleted link below has been living in my drafts like forever (i.e. somewhere since mid June 2009), so time to write a bit about ISO 8601 and .NET. 151 more words

Development

OWIN and Katana part 3: more complex middleware

Introduction

We wrote our first OWIN component, a.k.a. middleware in the previous part of this series. We said that it’s called middleware because it sits somewhere in the invocation chain of elements. 922 more words

C#

OWIN and Katana part 2: the Application Function

Introduction

In the previous post of this series we started looking into OWIN and Katana. We also looked at a small, very basic Console based web server to see them in action. 1,234 more words

C#

OWIN and Katana part 1: the basics

Introduction

Katana is a new light-weight web framework built by Microsoft. It is based on a specification called OWIN – Open Web Interface for .NET. The default MVC5 template in Visual Studio 2013 have elements of Katana and OWIN. 1,154 more words

C#

Asynchronous Processing in EF6 and .NET 4.5

Courtesy Peter Vogel, VisualStudioMagazine.com

There’s one feature of Entity Framework (EF) 6 that’s only available in the Microsoft .NET Framework 4.5 or later: asynchronous processing. In this column, I’m going to look at some typical scenarios where you can use EF asynchronous processing and show how you might use it. 266 more words

Programming