To Upper First Char - CSharp System

CSharp examples for System:Char

Description

To Upper First Char

Demo Code


using System.Text;
using System.Security.Cryptography;
using System.Linq;
using System.IO;//ww w  .j ava  2 s . co  m
using System;

public class Main{
        public static string ToUpperFirstChar(this string value)
        {
            return char.ToUpper(value[0]) + value.Substring(1);
        }
}

Related Tutorials