示例#1
0
        public void Map <TargetType, SourceType>(TargetType target, SourceType source)
        {
            TCacheMapper <TargetType, SourceType> mapper = this.Create <TargetType, SourceType>();

            mapper.Map(target, source);
        }
示例#2
0
        public TargetType Map <TargetType, SourceType>(SourceType source)
        {
            TCacheMapper <TargetType, SourceType> mapper = this.Create <TargetType, SourceType>();

            return(mapper.Map(source));
        }