If you're looking for something that checks if any two elements are equal, you can create a set and check if the number of elements in the set is equal to the number of elements that were input.
string[] stringArray = new string[] {a, b, c, d};
HashSet<string> set = new HashSet<string>(stringArray);
ret = set.Count == stringArray.Length;