Distinct extension method of IEnumerable Interface can be used for this purpose.
string[] Countries = {
"India", "Pakistan", "United States of America", "Germany",
"Pakistan", "England", "Ireland", "India"};
var query = Countries.Distinct();
var distinctCountries = query.ToArray();
The
IEqualityComparer<T>
parameter can be supplied for controlling comparison of strings.