AutoMapper.Configuration.Conventions.DefaultMember.MapDestinationPropertyToSource C# (CSharp) Метод

MapDestinationPropertyToSource() публичный Метод

public MapDestinationPropertyToSource ( IProfileConfiguration options, TypeDetails sourceType, Type destType, Type destMemberType, string nameToSearch, LinkedList resolvers, IMemberConfiguration parent = null ) : bool
options IProfileConfiguration
sourceType TypeDetails
destType System.Type
destMemberType System.Type
nameToSearch string
resolvers LinkedList
parent IMemberConfiguration
Результат bool
        public bool MapDestinationPropertyToSource(IProfileConfiguration options, TypeDetails sourceType, Type destType, Type destMemberType, string nameToSearch, LinkedList<IMemberGetter> resolvers, IMemberConfiguration parent = null)
        {
            if (string.IsNullOrEmpty(nameToSearch))
                return true;
            var matchingMemberInfo = NameMapper.GetMatchingMemberInfo(sourceType, destType, destMemberType, nameToSearch);

            if (matchingMemberInfo != null)
                resolvers.AddLast(matchingMemberInfo.ToMemberGetter());
            return matchingMemberInfo != null;
        }
    }