Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How to use List(T).FindIndex with c++

$
0
0

I'm trying to use this method with a List<String^> but it wants a Predicate as an agrument and I can't find any documentation for declaring a predicate in c++.   This is what I have:

Predicate<String^> ^myPred;
myPred = gcnew Predicate<String^>();
Int32 index = plugins->FindIndex(myPred);

I get an error that:

Error    3    error C3350: 'System::Predicate<T>' : a delegate constructor expects 2 argument(s

Also, why are there so few c++ examples and so many c# examples?   Very frustrating!!!


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>