G
Guest
I am under the impression that an interface can not have implementation for
any of it's members.
I have been examining the: HttpContext.Current.User object.
The User property of Current is of type IPrincipal. Yet it has a property
called Identity which is of type IIdentity and that has a property called
Name. Now, according to MSDN the HttpContext.Current.User.Identity.Name
property returns the name of the user that is running the web page.
How can it return anything if it has no implementation??? Why make a
property of who's type is an interface? Isn't that fruitless?
Please someone explain, because I'm loosing faith in my understanding of
interfaces.
-Demetri
any of it's members.
I have been examining the: HttpContext.Current.User object.
The User property of Current is of type IPrincipal. Yet it has a property
called Identity which is of type IIdentity and that has a property called
Name. Now, according to MSDN the HttpContext.Current.User.Identity.Name
property returns the name of the user that is running the web page.
How can it return anything if it has no implementation??? Why make a
property of who's type is an interface? Isn't that fruitless?
Please someone explain, because I'm loosing faith in my understanding of
interfaces.
-Demetri