Ejemplo n.º 1
0
 public static IDllImportXSample Create()
 {
     return(DllImportXFactory.Build <IDllImportXSample>(x =>
     {
         x.DllName = ResolveLibraryPath(x.DllName);
     }));
 }
 public DllImportXTestsSimple()
     : base(DllImportXFactory.Build <DllImportXSamplesInterface>(x =>
 {
     x.IgnoreAttributes = true;
     x.DllName          = (IntPtr.Size == 8 ? "x64/" : "x86/") + x.DllName;
 }))
 { }
Ejemplo n.º 3
0
 public static IDllImportXSample CreateWithIgnoreAttributes()
 {
     return(DllImportXFactory.Build <IDllImportXSample>(x =>
     {
         x.IgnoreAttributes = true;
         x.DllName = ResolveLibraryPath(x.DllName);
     }));
 }
 public DllImportXTestsStrict()
     : base(DllImportXFactory.Build <DllImportXSamplesInterface>(x =>
 {
     x.DllName = (IntPtr.Size == 8 ? "x64/" : "x86/") + x.DllName;
 }))
 { }