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,

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
316 questions
C++
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.
3,482 questions
{count} votes