Problem
In the last couple of weeks I am creating a application where it is possible to generate a C# class file (.cs
file extention). I am trying to find a Nuget-Package, or some other way to format this document so it is readable but I can't seem to find any solution, either no question on here.
I know there is a way to format a document, but this is too much work for my project.
Question
Do any of you have the same "problem" and is there a way to format a document properly?
Some extra explanation
How I want to have my document (kind of) formatted:
GINLoop1 = new List < GINLoop1 > () {
new GINLoop1 {
GIN = new GIN {
Objectidentificationcodequalifier_01 = "test1",
IDENTITYNUMBERRANGE_02 = new C208_2 {
Objectidentifier_01 = "test",
Objectidentifier_02 = null,
},
IDENTITYNUMBERRANGE_03 = null,
IDENTITYNUMBERRANGE_04 = null,
IDENTITYNUMBERRANGE_05 = null,
IDENTITYNUMBERRANGE_06 = null,
},
},
},
How my document is now formatted:
GINLoop1 = new List < GINLoop1 > () {
new GINLoop1 {
GIN = new GIN {
Objectidentificationcodequalifier_01 = "test1",
IDENTITYNUMBERRANGE_02 = new C208_2 {
Objectidentifier_01 = "test",
Objectidentifier_02 = null,
},
IDENTITYNUMBERRANGE_03 = null,
IDENTITYNUMBERRANGE_04 = null,
IDENTITYNUMBERRANGE_05 = null,
IDENTITYNUMBERRANGE_06 = null,
},
},
},