decimal.TryParse int.TryParse DateTime.TryParse

代码
   
     
decimal listPrice;
int size;

decimal .TryParse(dr[ 5 ], System.Globalization.NumberStyles.AllowDecimalPoint, System.Globalization.CultureInfo.InvariantCulture, out listPrice);

int .TryParse(dr[ 6 ], System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out size);

Nullable
< DateTime > dt_temp;
DateTime.TryParse(dr[
13 ].ToString(), out ubto);

 

你可能感兴趣的:(DateTime)