I have a entity User(Base Class).Which have three child entity Admin ,Manager and Member
By selecting all the user how can I know that particular user is admin or manager or member. I have to show all the user data in the grid with a column Name as type where I need to show Admin or Manager or Member
Here’s a complete solution to this.
Simple call the GetType() method for each instance
And the output is