private static MemberInfo GetBasePropertyInfo(MemberInfo info, Type targetType) { PropertyInfo propertyInfo = info as PropertyInfo; return(targetType.GetProperty(propertyInfo.Name, AttributeDataCache._getInfoBindingFlags, null, propertyInfo.PropertyType, AttributeDataCache.ToTypeArray(propertyInfo.GetIndexParameters()), null)); }
private static MemberInfo GetBaseMethodInfo(MemberInfo info, Type targetType) { MethodInfo methodInfo = info as MethodInfo; return(targetType.GetMethod(methodInfo.Name, AttributeDataCache._getInfoBindingFlags, null, AttributeDataCache.ToTypeArray(methodInfo.GetParameters()), null)); }