Wednesday, November 28, 2007

Interesting findings ...

What would you say if you found a class with the following interface during a code review?

internal static class Internal
{
// Methods
private static void CommonlyUsedGenericInstantiations_HACK();
private static T NullableHelper_HACK<T>() where T : struct;
private static void SZArrayHelper_HACK<T>(SZArrayHelper oSZArrayHelper);
}

Suspicious to say the least ...


The 'interesting' part here, is that the class actually exists, and not just anywhere but as System.Internal in mscorlib !

No comments: