Ejemplo n.º 1
0
 /// <summary>
 /// Attempts to parse <see cref="DataRate"/> from a string.
 /// </summary>
 public static bool TryParse(string input, out DataRate result) =>
 DataRateParser.TryParse(input, out result);
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new <see cref="DataRate"/> from given gigabytes per second value.
 /// </summary>
 public static DataRate GigabytesPerSecond(this double value) =>
 DataRate.FromGigabytesPerSecond(value);
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new <see cref="DataRate"/> from given terabytes per second value.
 /// </summary>
 public static DataRate TerabytesPerSecond(this ushort value) =>
 DataRate.FromTerabytesPerSecond(value);
Ejemplo n.º 4
0
 public static DataRate MegabytesPerSecond(this long value) =>
 DataRate.FromMegabytesPerSecond(value);
Ejemplo n.º 5
0
 /// <summary>
 /// Creates a new <see cref="DataRate"/> from given kilobytes per second value.
 /// </summary>
 public static DataRate KilobytesPerSecond(this double value) =>
 DataRate.FromKilobytesPerSecond(value);
Ejemplo n.º 6
0
 /// <summary>
 /// Creates a new <see cref="DataRate"/> from given kilobytes per second value.
 /// </summary>
 public static DataRate KilobytesPerSecond(this ushort value) =>
 DataRate.FromKilobytesPerSecond(value);
Ejemplo n.º 7
0
 /// <summary>
 /// Creates a new <see cref="DataRate"/> from given bytes per second value.
 /// </summary>
 public static DataRate BytesPerSecond(this int value) =>
 DataRate.FromBytesPerSecond(value);
Ejemplo n.º 8
0
 /// <summary>
 /// Creates a new <see cref="DataRate"/> from given petabytes per second value.
 /// </summary>
 public static DataRate PetabytesPerSecond(this int value) =>
 DataRate.FromPetabytesPerSecond(value);