internal override IEnumerable <PropertyMapInfo> GetPropertyMapInfo(PropertyInfo targetProperty, Type sourceType) { var sourcePropertyInfo = SourceType.FindProperties(PropertyName); yield return(new PropertyMapInfo { TargetType = targetProperty.DeclaringType, TargetPropertyInfo = targetProperty, SourceType = SourceType, SourcePropertyInfos = sourcePropertyInfo.ToArray() }); }
internal override PropertyMapInfo GetPropertyMapInfo(PropertyInfo targetProperty) { var sourcePropertyInfo = SourceType.FindProperties(PropertyName); return(new PropertyMapInfo { TargetType = targetProperty.DeclaringType, TargetPropertyInfo = targetProperty, SourceType = SourceType, SourcePropertyInfos = sourcePropertyInfo.ToArray() }); }