Starts with upper case. - CSharp System

CSharp examples for System:String Case

Description

Starts with upper case.

Demo Code


using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Text;
using System;//from  w w w .  ja va 2 s  .co m

public class Main{
        /// <summary>
        /// Starts with upper case.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <returns></returns>
        public static bool StartWithUpperCase(string name)
        {
            return name.Length >= 1 && char.IsUpper(name[0]);
        }
}

Related Tutorials