I've been inspired by Tolani and Heman. I used char[]. Bellow is my code snippet.
char[] pangramInput = "We promptly judged antique ivory buckles for the next prize"
.ToLowerInvariant().ToCharArray();
var alphabet = Enumerable.Range(97, 26).Select((x) => (char)x);
var pangramCheck = alphabet.All(v => pangramInput.Contains(v));
Elapsed time measured with 32kB 'Lorem ipsum' text:
- Tolani 12 ms
- HermanHeman 11 ms
- t3chb0t 7 ms (
TakeWhileversion ~8 ms) - Tomas 2 ms