namespace EonaCat.FirstLight.SaveTransfer.VdfGenerator;
public static class NumberParser
{
///
/// Parses the specified string as a 32-bit signed integer value.
///
/// The string representation of the number to parse.
/// The parsed 32-bit signed integer value if the parse operation succeeds; otherwise, 0.
public static int ParseInt(string s)
=> int.TryParse(s, out var v) ? v : 0;
///
/// Parses the specified string representation of a number to a 64-bit signed integer.
///
/// The string containing the number to parse.
/// The parsed 64-bit signed integer value if parsing succeeds; otherwise, 0.
public static long ParseLong(string s)
=> long.TryParse(s, out var v) ? v : 0;
}