Sometimes when looking at CodeTypeRefs the CodeModel seems to be in an invalid state.
The CodeTypeRef.AsFullName property doesn't return the fully-qualified name (ie. "Namespace.Class") but only the class name (ie. "Class").
The problem with this is that this is expected behavior for CodeTypeRefs that are generic type/method parameters (ie. "T").
The real problem lies in the fact that there is no way to distinguish between a CodeTypeRef that represents a generic parameter (=> expected behavior) or a CodeTypeRef that represents an actual type and just doesn't return the fully-qualified name (=> error).
In the debugger a property called "IsGeneric" is visible on the CodeTypeRef instance, however this property always seems to be false.