ACAT.Extensions.Default.FunctionalAgents.LectureManager.LectureManagerMainForm.Sentence.IsValid C# (CSharp) Method

IsValid() public method

Checks if all the chars in the sentence are valid alphanumeric chars.
public IsValid ( String s ) : bool
s String input string
return bool
            public bool IsValid(String s)
            {
                if (s.Length <= 2)
                {
                    foreach (char c in s)
                    {
                        if (Char.IsControl(c) || c < 0x20 || c > 127)
                        {
                            return false;
                        }
                    }
                }

                return true;
            }
        }
LectureManagerMainForm.Sentence