View on GitHub

LiTools

Tools

Bytes.To method (1 of 2)

Automatik convert into Gigabytes, Megabytes, Kilobyts.

public static Tuple<FileSizeEnums, double> To(long bytes)
parameter description
bytes input value in bytes that shod be converted.

Return Value

Value returnd as selected return type.

See Also


Bytes.To method (2 of 2)

Convert bytes into ?.

public static double To(FileSizeEnums data, long bytes)
parameter description
data Bytes, Kilobytes, Megabytes, Gigabytes.
bytes Input value in bytes.

Return Value

Value returnd as data return type.

See Also