I'm getting a syntax error when attempting to compile this code, and I'm not quite sure why. Could anyone help me with fixing this code?
DateTime? ModifiedDate = null; ModifiedDate = (dbReader["ModifiedDate"] == DBNull.Value ? null : DateTime.Parse(dbReader['ModifiedDate'].ToString()));