-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathAlt.Assembly.cs
28 lines (21 loc) · 1.1 KB
/
Alt.Assembly.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.Loader;
namespace AltV.Net
{
public partial class Alt
{
public static IEnumerable<Assembly> Assemblies => CoreImpl.Assemblies;
public static WeakReference<AssemblyLoadContext> AssemblyLoadContext => CoreImpl.GetAssemblyLoadContext();
public static Assembly LoadAssemblyFromName(AssemblyName assemblyName) =>
CoreImpl.LoadAssemblyFromName(assemblyName);
public static Assembly LoadAssemblyFromStream(Stream stream) => CoreImpl.LoadAssemblyFromStream(stream);
public static Assembly LoadAssemblyFromStream(Stream stream, Stream assemblySymbols) =>
CoreImpl.LoadAssemblyFromStream(stream, assemblySymbols);
public static Assembly LoadAssemblyFromPath(string path) => CoreImpl.LoadAssemblyFromPath(path);
public static Assembly LoadAssemblyFromNativeImagePath(string nativeImagePath, string assemblyPath) =>
CoreImpl.LoadAssemblyFromNativeImagePath(nativeImagePath, assemblyPath);
}
}