Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class StringExtension
- {
- public static bool IsCyrillic(this string str)
- {
- string sumdols = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
- for (int i = 0; i < str.Length; i++)
- {
- if (sumdols.IndexOf(char.ToLower(str[i])) == -1)
- return false;
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement