I'm trying to avoid returning an incorrect value when in the catch but I'm having trouble finding a better solution than this:
private SecurityLevel ApiGetSecurityLevel()
{
try
{
return _BioidInstance.GetSecurityLevel();
}
catch
{
return SecurityLevel.High;
}
}
Is there a better way of doing this so I don't return incorrect values? I can't change the SecurityLevel enum.