Browse by Tags

All Tags » .NET (RSS)

Understanding C# async / await (2) Awaitable / Awaiter Pattern by Dixin

What is awaitable Part 1 shows that any Task is awaitable. Actually there are other awaitable types. Here is an example: Task < int > task = new Task < int >(() => 0); int result = await task.ConfigureAwait( false ); // Returns a ConfiguredTaskAwaitable<TResult>...
Filed under: , , ,

Understanding C# async / await (1) Compilation by Dixin

Now the async / await keywords are in C#. Just like the async and ! in F# , this new C# feature provides great convenience. There are many nice documents talking about how to use async / await in specific scenarios, like using async methods in ASP.NET...
Filed under: , , ,

Understanding LINQ to SQL (11) Performance by Dixin

[ LINQ via C# series ] LINQ to SQL has a lot of great features like strong typing query compilation deferred execution declarative paradigm etc., which are very productive. Of course, these cannot be free, and one price is the performance. O/R mapping...

A DirectoryCatalog class for Silverlight MEF (Managed Extensibility Framework) by Dixin

In the MEF (Managed Extension Framework) for .NET, there are useful ComposablePartCatalog implementations in System.ComponentModel.Composition.dll, like: System.ComponentModel.Composition.Hosting.AggregateCatalog System.ComponentModel.Composition.Hosting...
Filed under: , , , ,

The Humor of Silverlight by Dixin

Silverlight must be kidding.
Filed under: , ,

A Snapshot Of ASP.NET Homepage by Dixin

First time to appear on www.asp.net homepage as headline!
Filed under: , , , , ,

A ToDynamic() Extension Method For Fluent Reflection by Dixin

Recently I needed to demonstrate some code with reflection, but I felt it inconvenient and tedious. To simplify the reflection coding, I created a ToDynamic() extension method. The source code can be downloaded from here . Problem One example for complex...
Filed under: , , ,

Back From Microsoft Web Camps Beijing by Dixin

I am just back from Microsoft Web Camps , where Web developers in Beijing had a good time for 2 days with 2 fantastic speakers, Scott Hanselman and James Senior . On day 1, Scott and James talked about Web Platform Installer, ASP.NET core runtime, ASP...

Anti-Forgery Request Recipes For ASP.NET MVC And AJAX by Dixin

This post discusses solutions for anti-forgery request scenarios in ASP.NET MVC and AJAX: How to enable validation on controller, instead of on each action; How to specify non-constant token salt in runtime; How to work with the server side validation...

Understanding LINQ to SQL (10) Implementing LINQ to SQL Provider by Dixin

[ LINQ via C# series ] So far LINQ to SQL data CRUD (Creating / Retrieving / Updating / Deleting) has been explained. This post takes a deeper look at the internal implementation of LINQ to SQL query. The provider model Unlike IEnumerable / IEnumerable<T>...
More Posts Next page »