There is a simple managed code in C++\CLI :
cli::array<String^>^ ar= gcnew cli::array<String^>{"Stack","Over","Flow", "Over" };
Now i want to sort this array using with LINQ.
How use LINQ in C++\CLI managed codes?
In regular .net & c# language programming way we act like this :
string[] ar = new string[] {"Stack","Over","Flow", "Over" };
string[] ar_sort = ar.OrderByDescending(s => s).ToArray();
int count = ar_sort.Where(s => s.Contains("Over")).Count();
Now i want convert them to C++\CLI managed :
cli::array<String^>^ ar= gcnew cli::array<String^>{"Stack","Over","Flow", "Over" };
... What about this line????
... And What about this line????
Based on this link :
How to use LINQ in C++/CLI - in VS 2010/.Net 4.0
C++/CLI does not support LINQ syntax.
But this link is for 2011 year & related to VS 2010.
My VS version is 2015.
So This Question is not duplicate.
Please don't vote to close.