Skip to content

Adding numeric converter via alias name throws exception #6010

@0MG-DEN

Description

@0MG-DEN
TypeInfoFactory factory = (options, mapping, _) => mapping.CreateInfo(options, null);

var map = new TypeInfoMappingCollection();
map.AddStructType<decimal>("numeric", factory);
map.AddStructArrayType<decimal>("numeric");

var brokenMap = new TypeInfoMappingCollection();
brokenMap.AddStructType<decimal>("decimal", factory);
brokenMap.AddStructArrayType<decimal>("decimal"); // Mapping not found.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions