private static INativeLibrary CreateNativeLibrary()

in JetBrains.Profiler.UnityApi/src/Impl/UnityProfilerInterop.cs [37:43]


    private static INativeLibrary CreateNativeLibrary(string libraryFullPath) => HabitatInfo.Platform switch
      {
        JetPlatform.Linux => new NativeLibrary(libraryFullPath),
        JetPlatform.MacOsX => new MacOsX.NativeLibrary(libraryFullPath),
        JetPlatform.Windows => new Windows.NativeLibrary(libraryFullPath),
        _ => throw new PlatformNotSupportedException()
      };