You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix IL2087 trim warning in 'ObjectReferenceWithContext<T>' (#1577)
* Fix trim warning for '_iid' in 'ObjectReference<T>'
* Remove duplicate IID definition
* Validate that input 'iid' arguments are not empty
* Optimize 'CreateForCurrentContext' on NAOT
* Fix generated 'ActivateInstance<I>' method
* Fix trim warning in 'IMarshal' in Windows SDK
* Skip closure allocation in ObjectReferenceWithContext<T> (#1587)
* Skip closure allocation in ObjectReferenceWithContext<T>
* Remove even more closure allocations in ObjectReferenceWithContext<T> (#1589)
* Skip closures for 'Context.CallInContext' calls
* Use function pointers instead of delegates
* Move context lambda to FOH
public delegate* unmanaged[Stdcall]<IntPtr,IntPtr,Guid*,IntPtr*,int> GetInterfaceFromGlobal =>(delegate* unmanaged[Stdcall]<IntPtr,IntPtr,Guid*,IntPtr*,int>)_GetInterfaceFromGlobal;
150
150
}
151
151
152
-
public static ObjectReference<Vftbl>FromAbi(IntPtrthisPtr)=>ObjectReference<Vftbl>.FromAbi(thisPtr);
152
+
public static ObjectReference<Vftbl>FromAbi(IntPtrthisPtr)=>ObjectReference<Vftbl>.FromAbi(thisPtr,global::WinRT.Interop.IID.IID_IGlobalInterfaceTable);
153
153
154
154
public staticimplicitoperator IGlobalInterfaceTable(IObjectReferenceobj)=>(obj!=null)?newIGlobalInterfaceTable(obj):null;
155
155
public staticimplicitoperator IGlobalInterfaceTable(ObjectReference<Vftbl>obj)=>(obj!=null)?newIGlobalInterfaceTable(obj):null;
0 commit comments