var mapConfig = new MapperConfiguration(cfg => cfg.CreateMap<SourceClass, DestinationClass>());var mapper = mapConfig.CreateMapper();var activit = mapper.Map<DestinationClass>(sourceObject);