Permalink 06/03/07 02:41:44 pm Categories: .NET General , 98 words, English (AU)

Side-by-Side assemblies

I was getting the following error recently:Error: The Side-by-Side configuration information in "<mydll>" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the applica… more »
Permalink 05/03/07 08:37:21 am Categories: .NET General , 470 words, English (AU)

Dynamically generating a [DllImport]

If you’ve ever worked with P/Invoke before, you’ll no doubt know that the typical usage pattern is something like this:[DllImport("user32", CharSet=CharSet.Auto)]int MessageBox(IntPtr hWnd, string lpText, string lpCaption, uint uType);This is g… more »
Permalink 22/10/06 11:08:26 pm Categories: Technical, .NET General , 254 words, English (AU)

"International" StrCmpLogicalW

I've made a version of the native StrCmpLogicalW in C# that sorts the non-digit parts in a culturally-sensitive way (or, if you like, in a non-culturally-sensitive way). You can download the code here The algorithm is quite simple, and there's plenty… more »
Permalink 07/09/06 10:53:24 pm Categories: .NET General , 115 words, English (AU)

SqlDependency that stops working from ASP.NET

We were having this strange problem today where an SqlDependency that we set up would mysteriously stop working after a short while (maybe 5 minutes or so). What would happen is, you'd set up the SqlDepedency, and for about 5 minutes or so, everything w… more »
Permalink 28/08/06 04:02:45 pm Categories: .NET General , 222 words, English (AU)

C# constructors with both a this() and a base()

Let’s say I have the following, rather simple, class hierarchy:class FooBase{ public FooBase(int a) { Console.WriteLine("FooBase({0})", a); }}class MyFoo{ public MyFoo(int a, string s) { Console.Wr… more »

<< 1 2 3 4 5 6 >>