我有 2 个字符串数组。一是基础,二是变化。
string[] baseArray = { "Gold", "Silver", "Bronze" };
string[] readArray = { "Bronze", "Silver", "Gold" };
// After comparing the readArray over the baseArray the result should be this
//string match = "Gold";
我想按baseArray的顺序获得第一个。
//Example2
string[] readArray = { "Bronze", "Silver" };
//string match should be "Silver"