[Solved] check if string contains same characters twice [closed]
If you want to check for any word to be used twice, use the Split function to make a string into words, and then Group to get counts: string input = “MyString MyString”; var words = input.Split().GroupBy(s => s).ToDictionary( g => g.Key, g => g.Count() ); The dictionary words will be a set of key … Read more