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

Implemented Extends and Implements extension methods for the Type class #49

Open
wants to merge 2 commits into
base: v1/main
Choose a base branch
from

Conversation

abjerner
Copy link
Member

The syntax or wording around the IsAssignableFrom method feels a bit weird, so this PR introduces Extends and Implements extension methods to be used as alternatives.

While the two methods do the same, the idea is that the Extends method can be used to check whether a System.Type extends a given class, and that the Implements method can be used to check whether a System.Type implements a given interface.

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.

2 participants