I have the following:
switch (_ha.AppType.ToLower())
{
case "sqlserver":
return HlpAppType.SqlServer;
case "ad":
return HlpAppType.ActiveDirectory;
case "exchange":
return HlpAppType.Exchange;
default:
return HlpAppType.None;
}
yet, when the _ha.AppType string value is "sqlServer" it falls to the default. At what point in the analyzation of that string does the switch happen and at what point does the ToLower() function happen? Does the ToLower happen AFTER the swtich has analyzed which branch to follow?
Edit
I suppose I should clarify that the _ha.AppType is a string, yet I'm returning an enumeration type.