First Char To Upper - CSharp System

CSharp examples for System:Char

Description

First Char To Upper

Demo Code


using System.Text.RegularExpressions;
using System.Text;
using System.Linq;
using System.Globalization;
using System;/*  w  w w  .  j  a v  a 2s .c o  m*/

public class Main{
        public static string FirstCharToUpper(this string input)
        {
            return input.First().ToString().ToUpper() + string.Join("", input.Skip(1));
        }
}

Related Tutorials