private static void ShutdownEntryPointWrapper(IFbClient fbClient) { // the fb_shutdown does not exists before 2.5 // the exception is just ignored // once <2.5 is not existing we can remove this try { fbClient.fb_shutdown(0, 0); } catch (EntryPointNotFoundException) { } }
private static void ShutdownEntryPointWrapper(IFbClient fbClient) { // the fb_shutdown does not exists before 2.5 // the exception is just ignored // once <2.5 is not existing we can remove this try { fbClient.fb_shutdown(0, 0); } #if NETSTANDARD1_6 catch (Exception ex) when(ex.GetType().Name == "EntryPointNotFoundException") #else catch (EntryPointNotFoundException) #endif { } }