Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.To<Guid>() object extension method throws Invalid cast from 'System.String' to 'System.Guid' exception. #2330

Merged
merged 1 commit into from
Jul 18, 2017

Conversation

tjackadams
Copy link
Contributor

The following exception is thrown when the extension method is called like
var x = value.To<Guid>();

Invalid cast from 'System.String' to 'System.Guid'

This PR uses a different method to convert to a Guid. An example has been added to an existing unit test to cover the changes.

added unit test to cover the change.
@hikalkan hikalkan added this to the v2.2 milestone Jul 18, 2017
@hikalkan hikalkan merged commit 78b0a7e into aspnetboilerplate:dev Jul 18, 2017
@tjackadams tjackadams deleted the bug-extensionmethod branch July 18, 2017 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants