public void Apply(IProperty target) { var enumerationType = target.PropertyType.GetGenericArguments()[0]; var mapperType = typeof(GenericEnumMapper<>).MakeGenericType(enumerationType); target.CustomTypeIs(mapperType); target.Nullable(); }