public PropertyDefinition GetPropertyDefinition(icPropertyDefinition item) { return(TryGetOrAdd(_propertycache, item, pdef => { var tdef = GetTypeDefinition(item.DeclaringType); return tdef == null ? null : ILSpyHelper.FindMatchingProperty(tdef, pdef); })); }
public PropertyDefinition GetPropertyDefinition(icPropertyDefinition item) { return TryGetOrAdd(_propertycache, item, pdef => { var tdef = GetTypeDefinition(item.DeclaringType); return tdef == null ? null : ILSpyHelper.FindMatchingProperty(tdef, pdef); }); }
public static PropertyDefinition FindMatchingProperty(TypeDefinition tdef, icPropertyDefinition item) { return(tdef.Properties.FirstOrDefault(p => p.ToString() == item.ToString())); }
public static PropertyDefinition FindMatchingProperty(TypeDefinition tdef, icPropertyDefinition item) { return tdef.Properties.FirstOrDefault(p => p.ToString() == item.ToString()); }