ByteSize struct ByteSize : IComparable<ByteSize>, IEquatable<ByteSize> Documentation Code public const long BitsInByte = 8 public const string BitSymbol = "b" public const long BytesInGigaByte = 1073741824 public const long BytesInKiloByte = 1024 public const long BytesInMegaByte = 1048576 public const long BytesInPetaByte = 1125899906842624 public const long BytesInTeraByte = 1099511627776 public const string ByteSymbol = "B" public const string GigaByteSymbol = "GB" public const string KiloByteSymbol = "KB" public static readonly ByteSize MaxValue public const string MegaByteSymbol = "MB" public static readonly ByteSize MinValue public const string PetaByteSymbol = "PB" public const string TeraByteSymbol = "TB" public long Bits { get; } public double Bytes { get; } public double GigaBytes { get; } public double KiloBytes { get; } public string LargestWholeNumberSymbol { get; } public double LargestWholeNumberValue { get; } public double MegaBytes { get; } public double PetaBytes { get; } public double TeraBytes { get; } public ByteSize(double byteSize) public static ByteSize FromBits(long value) public static ByteSize FromBytes(double value) public static ByteSize FromGigaBytes(double value) public static ByteSize FromKiloBytes(double value) public static ByteSize FromMegaBytes(double value) public static ByteSize FromPetaBytes(double value) public static ByteSize FromTeraBytes(double value) public static ByteSize op_Addition(ByteSize b1, ByteSize b2) public static ByteSize op_Decrement(ByteSize b) public static bool op_Equality(ByteSize b1, ByteSize b2) public static bool op_GreaterThan(ByteSize b1, ByteSize b2) public static bool op_GreaterThanOrEqual(ByteSize b1, ByteSize b2) public static ByteSize op_Increment(ByteSize b) public static bool op_Inequality(ByteSize b1, ByteSize b2) public static bool op_LessThan(ByteSize b1, ByteSize b2) public static bool op_LessThanOrEqual(ByteSize b1, ByteSize b2) public static ByteSize op_UnaryNegation(ByteSize b) public static ByteSize Parse(string s) public static bool TryParse(string s, out ByteSize result) public ByteSize Add(ByteSize bs) public ByteSize AddBits(long value) public ByteSize AddBytes(double value) public ByteSize AddGigaBytes(double value) public ByteSize AddKiloBytes(double value) public ByteSize AddMegaBytes(double value) public ByteSize AddPetaBytes(double value) public ByteSize AddTeraBytes(double value) public int CompareTo(ByteSize other) public bool Equals(ByteSize value) public string FormattedKiloByteString(string format) public ByteSize Subtract(ByteSize bs) public string ToString(string format)