What do you want to save?
Add Code snippet
New code examples in category C#
-
Krish 2022-03-27 17:30:06
c# convert byte to char
byte[] bytes = {Byte.MinValue, 40, 80, 120, 180, Byte.MaxValue}; char result; foreach (byte number in bytes) { result = Convert.ToChar(number); Console.WriteLine("{0} converts to '{1}'.", number, result); } // The example displays the foll... Add solution -
Awgiedawgie 2022-03-27 16:05:25
Find Number of Repetitions of Substring
using System; using System.Linq; public class Program { public static int NumberOfRepeats(string str) { int length = str.Length; int checkLength = 2; while (checkLength < length) { if (length % checkLength == 0) { var times ... Add solution -
Best helpers
Ranking is empty