Does the SamAccountName
property of UserPrincipal
not return a string? I'm trying to take the first character of my SamAccountName
and convert it .ToUpperCase()
but .ToUpperCase()
is not available for SamAccountName
private void firstCharToUppercase(Prinicpal principal)
{
UserPrinicpal user = principal as UserPrincipal;
user.SamAccountName[0].toUpperCase();
}