Exemple #1
0
        public static T1 Load <T1>(SearchPathContainer nameContainer, ISymbolLoader loader) where T1 : NativeAPI
        {
            var builder = new NativeLibraryBuilder(Options).WithSymbolLoader(x => loader ?? x);

            return(builder.ActivateClass <T1>(nameContainer.GetLibraryName()));
        }
Exemple #2
0
 public static T1 Load <T1>
     (SearchPathContainer nameContainer, Ultz.SuperInvoke.Loader.LibraryLoader loader) where T1 : NativeAPI =>
 LibraryActivator.CreateInstance <T1>(nameContainer.GetLibraryName(), loader);
Exemple #3
0
 public static T1 Load <T1>(SearchPathContainer nameContainer) where T1 : NativeAPI
 {
     CreateBuilder <T1>();
     return(_builders[typeof(T1)].ActivateClass <T1>(nameContainer.GetLibraryName()));
 }
Exemple #4
0
 public static T1 Load <T1>
     (SearchPathContainer nameContainer) where T1 : NativeAPI => LibraryActivator.CreateInstance <T1>
     (nameContainer.GetLibraryName());