예제 #1
0
 static ClassFactory()
 {
     NativeMethods.DllGetClassObject(ImportedObjectMetadata <TClass> .Value.Guid, ImportedInterfaceMetadata <IClassFactory> .Value.Guid, out var ptr);
     Factory = new ClassFactory(ptr);
 }
예제 #2
0
 static ClassFactory()
 {
     NativeMethods.DllGetClassObject(typeof(TClass).GUID, typeof(IClassFactory).GUID, out var ptr);
     Factory = new ClassFactory(ptr);
 }