-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Don't fail in case of const field in Collection source and extended support for type conversion #555
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
Merged
Ivanidzo4ka
merged 10 commits into
dotnet:master
from
Ivanidzo4ka:ivanidze/extend_api_types_support
Jul 23, 2018
Merged
Don't fail in case of const field in Collection source and extended support for type conversion #555
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e8ea5c4
Don't fail in case of const field in Collection source.
581cb42
fix tests, address some comments
62091c9
support nullable arrays.
ef950eb
bool case
49323f2
clean test code
d556d13
address comments
a7bb6e1
more comments!
d5143e6
give functions are better name?
5b7dc4a
add //Review comment regarding conversion
5f69a4c
address pete comments and format tests properly
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
convert
is an identity, we are still incurring a delegate method call here, which is not efficient. #ClosedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have identity converts. even if I pass is x=>x I convert from TSrc to TDst class and call implicit converter. Which I'm not sure how to express through generic classes.
I would like to get rid of them, I just don't know way how to do it.
In reply to: 203875078 [](ancestors = 203875078)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see now. Ok, why don't we call this
CreateConvertingGetterDelegate
, to make it clear that there's alsoCreateDirectGetterDelegate
?In reply to: 203876308 [](ancestors = 203876308,203875078)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I seem to recall this conversation with Shon, that any 'helper' mechanism that would introduce these expensive conversions better doesn't exist at all.
I don't agree with it, but it's something to consider: with all but no warning to the user, the pipeline with
int
will be slower than the pipeline withfloat
because of the conversion involved.This is part of a conversation about why we even have DvInts.
Maybe a REVIEW comment alongside this converting getter/setter would be in order?
In reply to: 203877031 [](ancestors = 203877031,203876308,203875078)