public static bool IsAllowedScheme(string schemeType) { try { Enum.Parse(typeof(SIPSchemesEnum), schemeType, true); return true; } catch { return false; } }