MB
Simplest way to get a number of megabytes.
Source
/// <summary>
/// Megabytes
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static int MB(this int value)
{
return value.KB() * 1024;
}
Example
//You need the KB extension also.
var 1mb = 1.MB();