I have this error:
Unknown collection. Consider a custom type converter from System.Boolean[] to LanguageExt.Option`1[System.Boolean[]]
class A {
public string Value {get;set;}
}
record B (Option<bool[]> Value)
CreateMap<A, B>()
.ForCtorParam(
nameof(B.Value ),
opt => opt.MapFrom(src => ParseStringToArray()))
bool[]? ParseStringToArray() {
return null;
}
Work just if
record B (Option<IReadOnlyCollection<int>> Value)
How can help?
Thanks