ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Simplest way to get a number of kilobytes.
/// <summary> /// Kilobytes /// </summary> /// <param name="value"></param> /// <returns></returns> public static int KB(this int value) { return value * 1024; }
var 10k = 10.KB();
Author: José Fidalgo H.
Submitted on: 13 jun. 2013
Language: C#
Type: System.Int32
Views: 4987