Skip to content
This repository has been 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
merged 1 commit into from
Nov 5, 2015

Conversation

Tratcher
Copy link
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
Member Author

Tratcher commented Nov 4, 2015

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

@Tratcher
Copy link
Member Author

Tratcher commented Nov 5, 2015

Updated with tests.

@Tratcher
Copy link
Member Author

Tratcher commented Nov 5, 2015

@BrennanConroy

@yukozh
Copy link

yukozh commented Nov 5, 2015

LGTM

@JunTaoLuo
Copy link
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
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