Example #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);
Example #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);
Example #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);
Example #4
0
 public static DataRate MegabytesPerSecond(this long value) =>
 DataRate.FromMegabytesPerSecond(value);
Example #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);
Example #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);
Example #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);
Example #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);