BetterAutoMapper.BAMStrictMapViolationException.BAMStrictMapViolationException C# (CSharp) Method

BAMStrictMapViolationException() public method

public BAMStrictMapViolationException ( Type from, Type to, IEnumerable keys ) : System
from System.Type
to System.Type
keys IEnumerable
return System
        public BAMStrictMapViolationException(Type from, Type to, IEnumerable<string> keys)
        {
            var sb = new StringBuilder();
            sb.AppendFormat("The conversion from {0} to {0} failed.", from.Name, to.Name);
            sb.AppendFormat(" {0} properties would have been lost in the conversion and the conversion was flagged as strict.", keys.Count());
            _message = sb.ToString();
        }
BAMStrictMapViolationException