The type '{0}' is not a type whose values can be enumerated with this syntax, i.e. is not compatible with either seq , IEnumerable ...