help
Root Question Message
i <= days.Length
foreach (var i in Enumerable.Range(0, days.Length)
for (var i = 0; i < days.Length; i++)
double.Parse(Console.ReadLine())
?Convert.ToDouble(Console.ReadLine())
double.Parse
has an additional ArgumentNullException β s is null.
void Parse(...)
and bool TryParse(..., out ...)
out
key word π
public struct DateTime
{
public static DateTime Parse(string dateTime)
{
...
}
public static bool TryParse(string dateTime, out DateTime result)
{
...
}
}
Parse
, it's supposed to throw an exception such as InvalidOperationException. TryParse
however try/catch'es it, so it never throws and instead it returns a boolean