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

Feature: Change the type of GridView.DataStore to IEnumerable #1444

Open
Berrysoft opened this issue Jul 3, 2019 · 2 comments
Open

Feature: Change the type of GridView.DataStore to IEnumerable #1444

Berrysoft opened this issue Jul 3, 2019 · 2 comments
Milestone

Comments

@Berrysoft
Copy link

I see that someone has created an issue two years ago, and I think it is important, because it is difficult to convert a List<int> or ObservableCollection<int> to IEnumerable<object>, but they are easy to be converted to IEnumerable. If the type of GridView.DataStore is changed to IEnumerable, we can remove the limitation of where T: class in GridView<T>, and it is obviously more convenient.

@Itaros
Copy link

Itaros commented Jul 4, 2019

What are downsides of IEnumerable over IEnumerable<T>? Are they negligible for such transition?

@Berrysoft
Copy link
Author

Expect that it is a broken change, I don't see any downsides. It doesn't require programmers to change the code, because if the instance of a type is assignable to IEnumerable<obejct>, it is certainly assignable to IEnumerable. By the way, WPF, UWP and Avalonia all use IEnumerable.

@cwensley cwensley added this to the 3.0 milestone Nov 21, 2019
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

No branches or pull requests

3 participants