Bosphorus.Dao.Common.Mapper.Core.CompositeMapper.IsApplicable C# (CSharp) Метод

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

public IsApplicable ( Type sourceType, Type targetType ) : bool
sourceType System.Type
targetType System.Type
Результат bool
        public bool IsApplicable(Type sourceType, Type targetType)
        {
            foreach (IMapper item in items)
            {
                bool isApplicable = item.IsApplicable(sourceType, targetType);
                if (isApplicable)
                {
                    return true;
                }
            }

            return false;
        }