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

Add the entity type to IAttributeItemDto #100

Open
Schnjan opened this issue Jul 8, 2021 · 0 comments
Open

Add the entity type to IAttributeItemDto #100

Schnjan opened this issue Jul 8, 2021 · 0 comments
Labels

Comments

@Schnjan
Copy link
Contributor

Schnjan commented Jul 8, 2021

When working with IAttributeItemDto it would be very helpful to have a property Entity or Type which returns the entity type of the item.

Right now we have to use a switch statement which checks for the base types of all implementations, which is both slow and dangerous, since you could change your inheritance tree at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant