Working with Double

Same as before, because the data have a decimal point, we used double instead of integer.

// in GameResult class
public Double PossessionPercent { get; set; }
// in Main class
Double PossessionPercent;
if (Double.TryParse(values[6], out PossessionPercent))
{
    GameResult.PossessionPercent = PossessionPercent;
}

results matching ""

    No results matching ""