C#给DateTime?赋值为null,赋值为空

// DateTime? 
info.Plan_start_time = reader["Plan_start_time"] is DBNull ? new Nullable<DateTime>() : Convert.ToDateTime(reader["Plan_start_time"]);
               

你可能感兴趣的:(C#,c#,开发语言)