Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic Class inheritance
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01611057
Message ID:
01611498
Vues:
41
>Hi Viv, I'm using the crude example ( your words ) in my app to manage a list of config classes and it works absolutely fine but one of the reasons for wanting a config file was to make it easy to change settings in a text file, and whilst I can change a setting ( being very careful using Notepad ) I don't feel comfortable letting users loose on the file as the Json serializer stores the text as one long line, is there a way of doing this so that each item in the list is serialized on a seperate line ?

Try:
JsonConvert.SerializeObject(xxx, Formatting.Indented);
(Top of my head, hope it's right :-} )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform