I have this code to generate the output shown below, when I debug the code, I can see the "CostLine.ExternalId" but when the result is shown in Postman, the case has changed to "costLine.ExternalId", Is there any way that we could prevent this?
Code:
rows[row.Id] = new Dictionary<string, List<string>> {
{
"CostLine.ExternalId", ["123456", "7959587", "8752296"]
}
};
Result:
"rows": {
"9335b339-d283-4175-bb4d-53f133fdee46": {
"costLine.ExternalId": [
"123456"
]
},
"c557f6cc-b443-41ac-9214-601b3cb24326": {
"costLine.ExternalId": [
"7959587", "8752296"
]
}
}
I have tried StringComparer.InvariantCultureIgnoreCase but does not work. Any help is highly appreciated.