/// <summary> /// Creates a new <see cref="DataSize"/> from given gigabytes value. /// </summary> public static DataSize Gigabytes(this long value) => DataSize.FromGigabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given gigabytes value. /// </summary> public static DataSize Gigabytes(this double value) => DataSize.FromGigabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given megabytes value. /// </summary> public static DataSize Megabytes(this int value) => DataSize.FromMegabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given gigabytes value. /// </summary> public static DataSize Gigabytes(this ushort value) => DataSize.FromGigabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given kilobytes value. /// </summary> public static DataSize Kilobytes(this long value) => DataSize.FromKilobytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given kilobytes value. /// </summary> public static DataSize Kilobytes(this double value) => DataSize.FromKilobytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given bytes value. /// </summary> public static DataSize Bytes(this long value) => DataSize.FromBytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given kilobytes value. /// </summary> public static DataSize Kilobytes(this ushort value) => DataSize.FromKilobytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given petabytes value. /// </summary> public static DataSize Petabytes(this long value) => DataSize.FromPetabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given petabytes value. /// </summary> public static DataSize Petabytes(this double value) => DataSize.FromPetabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given petabytes value. /// </summary> public static DataSize Petabytes(this ushort value) => DataSize.FromPetabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given terabytes value. /// </summary> public static DataSize Terabytes(this double value) => DataSize.FromTerabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given terabytes value. /// </summary> public static DataSize Terabytes(this long value) => DataSize.FromTerabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given terabytes value. /// </summary> public static DataSize Terabytes(this ushort value) => DataSize.FromTerabytes(value);
/// <summary> /// Creates a new <see cref="DataSize"/> from given bytes value. /// </summary> public static DataSize Bytes(this ushort value) => DataSize.FromBytes(value);