Skip to content

Commit

Permalink
Merge pull request #559 from microsoft/fix-idictionary-clear
Browse files Browse the repository at this point in the history
Fixed IDictionary.Clear EntryPointNotFoundException
  • Loading branch information
ujjwalchadha authored Nov 3, 2020
2 parents 8d6b661 + 4ac4147 commit d050500
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion WinRT.Runtime/Projections/IDictionary.net5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,17 @@ public static ObjectReference<Vftbl> ObjRefFromAbi(IntPtr thisPtr)
}
}

unsafe void global::System.Collections.Generic.ICollection<global::System.Collections.Generic.KeyValuePair<K, V>>.Clear()
void global::Windows.Foundation.Collections.IMap<K, V>.Clear()
{
_ClearHelper();
}

void global::System.Collections.Generic.ICollection<global::System.Collections.Generic.KeyValuePair<K, V>>.Clear()
{
_ClearHelper();
}

private unsafe void _ClearHelper()
{
var _obj = ((ObjectReference<Vftbl>)((IWinRTObject)this).GetObjectReferenceForType(typeof(global::System.Collections.Generic.IDictionary<K, V>).TypeHandle));
var ThisPtr = _obj.ThisPtr;
Expand Down

0 comments on commit d050500

Please sign in to comment.