private void EnsureInternalFieldDependencies(TypeDefinition typedef) { foreach (var field in typedef.Members.OfType<Field>()) EnsureInternalDependencies((IType)field.Type.Entity); }