Char - ToString
Converts the specified Unicode character to its equivalent string representation.
public static void Main() { char [] input = {'E','n','t','i','t','y',' ','F','r','a','m','e','w','o','r','k',' ','6','.','2'}; String result = ""; for (int i = 0; i < input.Length; i++) { // C# Extension Method: Char - ToString result += input[i].ToLower(); Console.WriteLine("{0} : {1} ", input[i], result); } }
View Source
using System; public static partial class Extensions { /// <summary> /// Converts the specified Unicode character to its equivalent string representation. /// </summary> /// <param name="c">The Unicode character to convert.</param> /// <returns>The string representation of the value of .</returns> public static String ToString(this Char c) { return Char.ToString(c); } }