private static INativeLibraryLoader GetNativeLibraryLoader(ABI abi) { if (abi.IsWindows()) return new WindowsLibraryLoader(); else if (abi.IsLinux()) return new LinuxLibraryLoader(); else if (abi.IsOSX()) return new OSXLibraryLoader(); else return null; }
private static INativeLibraryLoader GetNativeLibraryLoader(ABI abi) { if (abi.IsWindows()) { return(new WindowsLibraryLoader()); } else if (abi.IsLinux()) { return(new LinuxLibraryLoader()); } else if (abi.IsOSX()) { return(new OSXLibraryLoader()); } else { return(null); } }