C# Array, How to make data in an array distinct from each other? For example
string[] a = {"a","b","a","c","b","b","c","a"};
how to get
string[]b = {"a","b","c"}
Easiest way is the LINQ Distinct()
command :
var b = a.Distinct().ToArray();