C# Convert Object data from camelCase to PascalCase

We are receiving Object data in C#. Goal is to rename the properties from camelCase to PascalCase.

So it wouldbe AddressTypeCode, AddressTypeDescription, first letter capitalized. Does C# have library function to conduct this inobject data?

We cannot use mapper, since its object; don't know what property members are,just need to be Camel cased.

Object Data:

enter image description here

Possible Solution:?

Open to using Newtonsoft serializer to convert to PascalCase, and then deserialize it?

Using Net Core 3.1

Read more here: https://stackoverflow.com/questions/64958085/c-sharp-convert-object-data-from-camelcase-to-pascalcase

Content Attribution

This content was originally published by JerryAlex48 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: