I'm trying to make my particles fade in my application using the alpha argument of the Color.FromArgb method but my math won't work because I have a nullable DateTime variable and the error it gives me is 'System.Nullable<System.TimeSpan>' does not contain a definition for 'TotalMilliseconds' and no extension method 'TotalMilliseconds' accepting a first argument of type 'System.Nullable<System.TimeSpan>' could be found (are you missing a using directive or an assembly reference?). Below is the code line that is throwing this error, can anyone help me get around this?
// Declaration of the variable
private DateTime? ParticleBirth;
// Error Line
double TotalLife = (DateTime.Now - ParticleBirth).TotalMilliseconds;
Thanks,
Jamie