CSharp examples for System:String Parse
Checks if letter is space ' ' or any punctuation (. , : ; ' " ! ?)
using System.Text; using System.Globalization; using System.Collections.Specialized; using System.Collections; using System;// w ww . j a v a2 s . c o m public class Main{ /// <summary> /// Checks if letter is space ' ' or any punctuation (. , : ; ' " ! ?) /// </summary> public static bool IsSpaceOrPunctuation( char letter ) { return letter == ' ' || letter == '.' || letter == ',' || letter == ':' || letter == ';' || letter == '\'' || letter == '\"' || letter == '!' || letter == '?' || letter == '*'; } // IsSpaceOrPunctuation(letter) }