System.Net.Browser.ClientHttpWebRequest.CheckCharacters C# (CSharp) Method

CheckCharacters() static private method

static private CheckCharacters ( string s ) : bool
s string
return bool
		static bool CheckCharacters (string s)
		{
			if (String.IsNullOrEmpty (s))
				return false;

			foreach (char c in s) {
				if (Char.IsWhiteSpace (c) || !Char.IsLetterOrDigit (c) || ((int) c > 127))
					return false;
			}
			return true;
		}