Recent Posts

32
Comments

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: , , ,
15
Comments

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: , , ,
0
Comments

Recover Outlook 2010 from crash by Dixin

Today my Outlook 2010 crashed while I am writing an email. When I restart I got this error: ‘Microsoft Office Outlook’ exited without properly closing your Outlook data file ‘c:\Users\dixinyan\AppData\Local\Microsoft\Outlook\dixinyan@microsoft.com.ost...
Filed under: ,
0
Comments

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...
79
Comments

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: , , , ,
12
Comments

Microsoft Most Valuable Professional Kit Unboxing by Dixin

I am very happy to receive the Microsoft Most Valuable Professional Kit: The box is mailed from Redmond:
Filed under: , , ,
6
Comments

Ellipses (…) In UI Command Text by Dixin

Some times, command text is followed by ellipsis (…) or not: For years, many developers told me that ellipses mean a new window or dialog will pop up. For example, here: Clicking New / Save / Exit will not pop up new window or dialog; Clicking Open… ...
Filed under: ,
1
Comments

A Snapshot Of ASP.NET Homepage by Dixin

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

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: , , ,
8
Comments

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...
More Posts Next page »