Skip to content

Add nullable annotations - #67

Open
bbowyersmyth wants to merge 1 commit into
kmaragon:masterfrom
bbowyersmyth:feature/nullable
Open

Add nullable annotations#67
bbowyersmyth wants to merge 1 commit into
kmaragon:masterfrom
bbowyersmyth:feature/nullable

Conversation

@bbowyersmyth

Copy link
Copy Markdown

Add nullable annotations. Because the library also compiles for older frameworks there is a mock MemberNotNullAttribute to work around that not existing.

Took a couple of the readonly recommendations.

Modified the csproj to enable nullable but also moved the old System.Memory package reference into just the frameworks that need it.

{
get
{
#if NET451

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Project is not targeting 4.5.1 so this code is not included, so null is not returned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant