Category Archives: .Net Stuff
TypeForwardedTo
When I first heard about this attribute I was excited, the refactoring potential was great! Then I read a bit more and was disappointed to see that while you could forward types, they had to maintain their full type name, … Continue reading
Silverlight 4
So I’m a couple of weeks behind the times but the final silverlight 4 tools were released, so it was time to give it a spin. The result is http://www.themissingdocs.net/LoopDeLoop.html Its a cut-down version of my win forms LoopDeLoop, but … Continue reading
Odd bug in 64bit .Net runtime
Was investigating a bug today and found some very peculiar behaviour in the 64bit .Net runtime. Lets say we have a thread running the following loop. while (true) { try { Thread.Sleep(10000); } catch { } try { } catch … Continue reading
.Net 4 Beta 2
Its out… I’ll write more here later but… Complex numbers! StringBuilder.Clear! Guid.TryParse! And they finally realized their mistake… ISet
WindowsIdentity
WindowsIdentity is IDisposable. Recently I went on a quest to dispose of IDisposable objects wherever I could find them, since many types are IDisposable but people are not aware of this fact. (Suggestion for VS2010, shade types which are IDisposable … Continue reading
.Net 4
So I have had a chance to look at the CTP briefly and I’ve found a few things of interest There are currently breaking changes, and .Net 4 installs side by side with .net 3.5 much like 1.1 does with … Continue reading
Random thoughts
Thought I would post something, since it has been a while. Looking forward to .Net 4/c# 4 news next week with the PDC. Session notes make it sound like BigInteger will be going mainstream so I can remove my dodgy … Continue reading
TMD.Algo 0.0.3.0
A new release of TMD.Algo can be found here. I’ve added a bunch of stuff since last time, and its even got a few more test cases. It still needs a bunch more really, but time flies. If anyone out … Continue reading
A new release
TMD.Algo 0.0.2.0 finally escaped. You can get it here. There is a bunch of new stuff, however not all of it has been tested yet, so as usual use with caution. The graph class is especially ultra-alpha right now. One … Continue reading
Generics and .Net internals
I noticed the following method while on a journey through reflector the other day. RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter(Type otherType) Quite an odd method really. Example in use: GenericEqualityComparer.TypeHandle. CreateInstanceForAnotherGenericParameter(typeof(T)); This lets you make a GenericEqualityComparer<T> instance. First thought is why wouldn’t you write … Continue reading