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()
            });
        }
Exemple #2
0
        internal override PropertyMapInfo GetPropertyMapInfo(PropertyInfo targetProperty)
        {
            var sourcePropertyInfo = SourceType.FindProperties(PropertyName);

            return(new PropertyMapInfo
            {
                TargetType = targetProperty.DeclaringType,
                TargetPropertyInfo = targetProperty,
                SourceType = SourceType,
                SourcePropertyInfos = sourcePropertyInfo.ToArray()
            });
        }