Invalid redundant cast
public string CurrentUserName
{
get
{
return ((ERPIDentity)Thread.CurrentPrincipal.Identity).Name;
}
}
Is flagged as redundant (which it isn't ofcourse, as IPrincipal doesn't have a property Name).
Please sign in to leave a comment.
Jesse Houwing wrote:
Well, you are looking at IIdentity which of course has a property
'Name'...
--
Immo Landwerth - Visual Studio 2003 - C# - XanaNews 1.17.4.1
Argh! must have seen that :)
Sorry!