KB

/// <summary>
/// Kilobytes
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static int KB(this int value)
{
  return value * 1024;
}
Example:
var 10k = 10.KB();

Description

Simplest way to get a number of kilobytes.

Details

Double click on the code to select all.

 

;