Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Expose NativeLibrary APIs
Browse files Browse the repository at this point in the history
Expose the System.Runtime.Interop.NativeLibrary APIs implemented in CoreCLR.

API review: #32015
CoreCLR Change: dotnet/coreclr#21821
  • Loading branch information
swaroop-sridhar committed Jan 12, 2019
1 parent a53ada1 commit 2ea3fbf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Runtime.InteropServices.cs" />
<Compile Condition="'$(TargetsNetCoreApp)' == 'true'" Include="System.Runtime.InteropServices.netcoreapp.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\System.Reflection\ref\System.Reflection.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------

namespace System.Runtime.InteropServices
{
public static partial class NativeLibrary
{
public static void Free(System.IntPtr handle) { }
public static System.IntPtr GetExport(System.IntPtr handle, string name) { throw null; }
public static System.IntPtr Load(string libraryPath) { throw null; }
public static System.IntPtr Load(string libraryName, System.Reflection.Assembly assembly, DllImportSearchPath? searchPath) { throw null; }
public static bool TryGetExport(IntPtr handle, string name, out IntPtr address) { throw null; }
public static bool TryLoad(string libraryPath, out System.IntPtr handle) { throw null; }
public static bool TryLoad(string libraryName, System.Reflection.Assembly assembly, DllImportSearchPath? searchPath, out System.IntPtr handle) { throw null; }
}
}

0 comments on commit 2ea3fbf

Please sign in to comment.