提交 1b180c4a 编写于 作者: D Daniel Zilcsak

Revert back to not using Linq, which ads unnecessary dll loads

上级 83491c12
......@@ -7,7 +7,6 @@
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Security;
using System.Security.Permissions;
......@@ -2116,9 +2115,14 @@ static bool PropertyUsedInMethodSignature(XamlMember property, ParameterInfo[] m
{
if (!string.IsNullOrEmpty(GetConstructorArgument(property)))
{
return methodParameters.Any(parameter =>
parameter.Name == GetConstructorArgument(property) &&
parameter.ParameterType == property.Type.UnderlyingType);
foreach (var parameter in methodParameters)
{
if (parameter.Name == GetConstructorArgument(property) &&
property.Type.UnderlyingType == parameter.ParameterType)
{
return true;
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册