Bosphorus.Dao.Common.Mapper.Core.CompositeMapper.IsApplicable C# (CSharp) Method

IsApplicable() public method

public IsApplicable ( Type sourceType, Type targetType ) : bool
sourceType System.Type
targetType System.Type
return 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;
        }