Skip to content
Discussion options

You must be logged in to vote

Notably this is just a side effect of extension methods (and with latest C#, extension members).

Anyone can add extensions for any type and when you match against an interface, it can expose functionality that may not be 100% sensible for the concrete type and rather only makes sense for the thing being matched against, which in this case is IEnumerable<char> and so Reverse simply enumerates the individual UTF-16 characters in reverse.

IntelliSense explicitly surfaces and allows filtering between concrete members and extension members.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Clockwork-Muse
Comment options

@tannergooding
Comment options

Answer selected by jhudsoncedaron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants