Get the char value at a specified index within a string - CSharp System

CSharp examples for System:Char

Description

Get the char value at a specified index within a string

Demo Code


using System;//from   w  ww. j a va 2s. c  o m

public class Main{

        public static char CharAt(string Value, int Index)
        {
            char[] ca = Value.ToCharArray();
            return ca[Index];
        }
}

Related Tutorials