How do I remove duplicates from a C# array? May 6, 2022 by Tarik You could possibly use a LINQ query to do this: int[] s = { 1, 2, 3, 3, 4}; int[] q = s.Distinct().ToArray();