Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Revert use of explicit converters that prevent APIs from returning null.#463

Merged
Tratcher merged 1 commit into
devfrom
tratcher/null
Nov 5, 2015
Merged

Revert use of explicit converters that prevent APIs from returning null.#463
Tratcher merged 1 commit into
devfrom
tratcher/null

Conversation

@Tratcher
Copy link
Copy Markdown
Member

@Tratcher Tratcher commented Nov 4, 2015

Reverting the use of explicit type converters (ToString and ToArray) that were preventing some APIs from returning null. The implicit converters can return null.

See https://github.com/aspnet/Common/blob/dev/src/Microsoft.Extensions.Primitives/StringValues.cs#L85
https://github.com/aspnet/Common/blob/dev/src/Microsoft.Extensions.Primitives/StringValues.cs#L104

@rynowak
/cc @benaadams

@Tratcher Tratcher self-assigned this Nov 4, 2015
@Tratcher Tratcher added this to the 1.0.0-rc2 milestone Nov 4, 2015
@Tratcher
Copy link
Copy Markdown
Member Author

Tratcher commented Nov 4, 2015

Note this is breaking several MVC tests due to ContentType not returning null.

@Tratcher
Copy link
Copy Markdown
Member Author

Tratcher commented Nov 5, 2015

Updated with tests.

@Tratcher
Copy link
Copy Markdown
Member Author

Tratcher commented Nov 5, 2015

@BrennanConroy

@yukozh
Copy link
Copy Markdown

yukozh commented Nov 5, 2015

LGTM

@JunTaoLuo
Copy link
Copy Markdown
Contributor

:shipit:

@Tratcher Tratcher merged commit f050e09 into dev Nov 5, 2015
@Tratcher Tratcher deleted the tratcher/null branch November 5, 2015 00:33
@NickCraver
Copy link
Copy Markdown
Contributor

+1 - Thanks for changing these up.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants