C++ CLI Task IEnumerable shows Error not a valid Generic argument

Arathi Jinde 6 Reputation points
2021-04-08T05:22:31.18+00:00

Hi ,

MyRepository<MyModel, String>^ pr = new PatientRepository<PatientModel, String>();

Task<IEnumerable<MyModel>^> FindAsync(String^ key)
{
return pr->FindAsync(key);
}

here Task IEnemurable<MyModel> shows not a valid generic argument

how to resolve this
Thanks,

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Developer technologies | .NET | .NET CLI
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.