Configuration.ShouldQuote - return true for only fields on the DTO which are strings #1329
Unanswered
adrianwright109
asked this question in
Q&A
Replies: 1 comment
-
Answered on StackOverflow |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi have a DTO object with a number of properties with different types,
string
,int
orbool
etc.I would like to apply double quotes around the
string
properties only.In the
Configuration.ShouldQuote
thefield
parameter values have all been converted tostring
so there is no way of knowing whether the original type from the DTO was astring
,int
orbool
.Is there a way I can find the underlying property type from the DTO so that I can pass back
true
fromConfiguration.ShouldQuote
only for fields that were originally of typestring
?Beta Was this translation helpful? Give feedback.
All reactions