未验证 提交 c631af32 编写于 作者: V Vatsan Madhavan 提交者: GitHub

Merge pull request #101 from dotnet-campus/t/lindexi/replaceIsAssignable

Replace IsAssignableFrom to is pattern
......@@ -391,7 +391,7 @@ internal XamlType GetDestinationType()
// One last thing to check: If the object we are inside is a ME
// then we are inside a call to ProvideValue and we don't want to
// return a reference to ourselves to ourselves.
if (!typeof(MarkupExtension).IsAssignableFrom(lowerFrame.Instance.GetType()))
if (!(lowerFrame.Instance is MarkupExtension))
{
returnAmbientValue = true;
value = lowerFrame.Instance;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册