From 5b178698f8f5c192a39ca2fdecda968d2d48d25a Mon Sep 17 00:00:00 2001 From: UJJWAL CHADHA Date: Mon, 2 Nov 2020 17:02:55 -0500 Subject: [PATCH] Fixed IDictionary.Clear EntryPointNotFoundException --- WinRT.Runtime/Projections/IDictionary.net5.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/WinRT.Runtime/Projections/IDictionary.net5.cs b/WinRT.Runtime/Projections/IDictionary.net5.cs index cc81ce02a..f7b3d6feb 100644 --- a/WinRT.Runtime/Projections/IDictionary.net5.cs +++ b/WinRT.Runtime/Projections/IDictionary.net5.cs @@ -791,7 +791,17 @@ public static ObjectReference ObjRefFromAbi(IntPtr thisPtr) } } - unsafe void global::System.Collections.Generic.ICollection>.Clear() + void global::Windows.Foundation.Collections.IMap.Clear() + { + _ClearHelper(); + } + + void global::System.Collections.Generic.ICollection>.Clear() + { + _ClearHelper(); + } + + private unsafe void _ClearHelper() { var _obj = ((ObjectReference)((IWinRTObject)this).GetObjectReferenceForType(typeof(global::System.Collections.Generic.IDictionary).TypeHandle)); var ThisPtr = _obj.ThisPtr;