Nullable DateTime conversion [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: c# why cant a nullable int be assigned null as a value Im trying to convert my reader[3] object which is datetime to be null if there is no lastPostDate for a Forum but it says Im missing a conversion. Error: Type of conditional expression cannot be determined because there is no implicit conversion between <null> and 'System.DateTime' public class Forums { public List<Forum> GetForums() { using (SqlConnection