Created
June 10, 2016 11:21
-
-
Save beachside-project/73f51c6b2c5098e8d5c4733f623106d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class EnumerableExtension | |
{ | |
public static bool ContainsDuplicate(this IEnumerable<string> source) => source.GroupBy(i => i).SelectMany(g => g.Skip(1)).Any(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment