Is Whitespace char - CSharp System.Xml

CSharp examples for System.Xml:XML String

Description

Is Whitespace char

Demo Code

// The .NET Foundation licenses this file to you under the MIT license.
using System.Xml;
using System.Runtime;
using System.Globalization;
using System.Collections.Generic;

public class Main{
        public static bool IsWhitespace(char ch)
        {//from  w  w  w  .  j a v  a2  s  .c  o m
            return (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n');
        }
}

Related Tutorials