SHARE
TWEET

Untitled

a guest Mar 26th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private static void Medidas()
  2. {
  3.     var filesize = (10).Megabytes();
  4.  
  5.     Console.WriteLine(filesize.Kilobytes); //10240
  6.     Console.WriteLine(filesize.Gigabytes);//0.009765625
  7.  
  8.     Console.WriteLine((10).Megabytes().Humanize());//10 MB
  9.     Console.WriteLine((1024).Megabytes().Humanize());//1 GB
  10.     Console.WriteLine((1024 * 1024 * 500).Kilobytes().Humanize());//500 GB
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top