You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeFlattener already works quite well for flat structures. Buttwo enhancements are needed:
Check if a field is a primitive and keep its value unchanged if it is. Otherwise, check if the type implements IConvertible and convert it according to the GetTypeCode() returned value. If not IConvertible, call ToString(). Spreads' primitive types must implement IConvertible or override ToString() (ToString() override is always needed to avoid boxing).
Recursive flattening. Need to decide if IConvertible takes priority over expanding nested non-primitive types. (some logic with attribute presence or custom attributes could apply).
The text was updated successfully, but these errors were encountered:
TypeFlattener already works quite well for flat structures. Buttwo enhancements are needed:
Check if a field is a primitive and keep its value unchanged if it is. Otherwise, check if the type implements
IConvertible
and convert it according to theGetTypeCode()
returned value. If notIConvertible
, callToString()
. Spreads' primitive types must implementIConvertible
or overrideToString()
(ToString()
override is always needed to avoid boxing).Recursive flattening. Need to decide if
IConvertible
takes priority over expanding nested non-primitive types. (some logic with attribute presence or custom attributes could apply).The text was updated successfully, but these errors were encountered: