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