In principle, no. You can implement IPrincipal with a class such as MyPrincipal , and this class can have a UserType property, but you will need to access the instance through a link of its own type in order to reach it, and not through a link to the interface.
change
The extension method may work, but only if you are absolutely sure that you will never call it something that implements IPrincipal , but is not an instance of your own class.
Steven sudit
source share