Serialize value of property only

Given this code:
https://dotnetfiddle.net/C3Pt3C

How would I only serialize the value of the "TempType" rather than the whole object?
Test your C# code online with .NET Fiddle code editor.
Was this page helpful?