CsvHelper icon indicating copy to clipboard operation
CsvHelper copied to clipboard

Nullability Annotations

Open tanveerbadar opened this issue 1 year ago • 0 comments

CsvHelper doesn't have nullability annotations.

Apply nullability annotations to various types as appropriate.

I cannot rely on this great library supporting compiler's nullability analysis at this point in time.

Take CsvReader.ReadHeader() for instance. It should have an annotation of [MemberNotNullWhen(true, nameof(HeaderRecord))]. Otherwise, users are forced to check the return value and header not being null for shutting up the compiler.

tanveerbadar avatar Aug 23 '23 13:08 tanveerbadar