using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FrodeTest.Test { public class StringTest { public static void RunTest() { Console.WriteLine("-- Testing String --"); Console.Write("LeftPadding: "); string hex = "F"; hex = hex.PadLeft(2, '0'); Console.WriteLine(hex); //Add char and string //Bug discovered 7.june. SysFault when adding char and string. string added = string.Empty; added = ((char)('c')) + "oncatenating char and string works."; Console.WriteLine(added); StringBuilder sb = new StringBuilder(); sb.Append("String"); sb.Append("Builder"); sb.Append(Environment.NewLine); sb.Append("Works"); Console.WriteLine(sb.ToString()); } } }