# FastMapper **Repository Path**: Empty/FastMapper ## Basic Information - **Project Name**: FastMapper - **Description**: 利用MSIL实现实体间的快速转换 - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2017-12-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #FastMapper FasterMapper是一个使用MSIL(微软中间语言)实现的简单的实体转换器,在千万级实体转换上效率与原生静态代码转换相差10%左右,足以适应大多数转换需求。 但缺点是功能太少,只能对Class类型转换,且仅支持核心的转换功能及简单的属性映射功能,不同属性类型转换不够灵活,由于用到了表达式树,所以最低支持.net3.5 使用方法: 1.引用FastMapper.dll 2.创建类映射关系 var _mapFunc = FastMap.CreateMap().Compile(); 3.使用生成的委托对类型实例进行转换 AClass a = new AClass(); BClass b = _mapFunc(a);