First Code Snippet – Simple Hertz and Bytes Converters (C#)

Hi everyone! These are my first code snippets. These were written as part of my CSIT project and are used to convert sizes and frequencies easily from one type to another. First lets look at the byte conversion function. [cc lang=”c#”] public enum ByteUnits : int { B, kB, MB, GB, TB, PB } public […]