question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MissInheritance of Enumerable

See original GitHub issue

In short words: everything must inherit from Enumerable

Currently on C#:

Enumerable<T>:

- Select
- Where
- First, Single
- FirstOrDefault, SingleOrDefault
- Basically all filter / select based methods

List<T> extends Enumerable<T>

- All inherited stuff
- Add, Delete, DeleteWhere (or DeleteAll), ...
- OrderBy, OrderByDesc

SortedList<T> extends List<T>

- Correctly implemented

Etc …

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kutyelcommented, May 22, 2017

Glad to hear, it seems that we are all trying to do the best implementation possible within our possibilities haha 😅

1reaction
isc30commented, May 22, 2017

Hey again! I decided to start a new TsLinq implementation from scratch. This new implementation is iterator based, without copying memory all the time and O(n) for most operation chains. If you want to help, we can make it really nice 😄 https://github.com/isc30/TsLinq

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Enumerable doesn't inherits from IEnumerable<T>
According to this sentence,We have to define methods in the IEnumerable<T> interface and implement in the Enumerable class by inheritance.is it correct?
Read more >
Enumerable Class (System.Linq) - Microsoft Learn
The methods in this class provide an implementation of the standard query operators for querying data sources that implement IEnumerable<T>.
Read more >
Jochen Mader | codepitbull@chaos.social on Twitter: "But it would ...
Pretty much any enum I know is superior to what Go does. I don't miss inheritance at all but some constructs to support...
Read more >
Why do new(ish) programming languages eschew OOP ...
Javascript as well. And I worked with large, fairly OO-oriented codebases in JS, and it was fine and I didn't miss inheritance.
Read more >
Help with leaving the object-oriented mindset : r/rust - Reddit
personally, I'd probably parse the data into a enum, though it's hard ... just like you, I still occasionally miss inheritance, which makes ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found