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 text)
- {
- string sumdols = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
- for (int i = 0; i < text.Length; i++)
- {
- if (sumdols.IndexOf(char.ToLower(text[i])) == -1)
- return false;
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement