/// <summary> Returns all non-generic types defined in the module </summary> /// <remarks> Generic types can not be returned, because we do not know how to instanciate them </remarks> public List <DebugType> GetDefinedTypes() { List <DebugType> types = new List <DebugType>(); foreach (TypeDefProps typeDef in this.MetaData.EnumTypeDefProps()) { if (this.MetaData.EnumGenericParams(typeDef.Token).Length == 0) { types.Add(DebugType.CreateFromTypeDefOrRef(this, null, typeDef.Token, null)); } } return(types); }