Created
July 29, 2019 20:54
-
-
Save uranio-235/683dd72a2fa7d4b0ea14213332a4de08 to your computer and use it in GitHub Desktop.
serialization problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static string GetEntityInChargeJSONRepresentation(EntityInCharge entityInCharge) | |
{ | |
if (entityInCharge == null) return "null"; | |
return JsonConvert.SerializeObject( | |
entityInCharge, | |
Formatting.None, | |
new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment