OK. A Question. Anyone care to enlighten me what this is:
foundType = (from assembly in AppDomain.CurrentDomain.GetAssemblies()
from type in assembly.GetTypes()
where type.FullName == typeName || type.Name == typeName
To me it looks a bit like a database lookup.
I found it in the IntermediateSerialiser in the content pipeline and its erroring with null reference.