Using C#, how would you go about converting a String
which also contains newline characters and tabs (4 spaces) from the following format
A {
B {
C = D
E = F
}
G = H
}
into the following
A.B.C = D
A.B.E = F
A.G = H
Note that A to H are just place holders for String
values which will not contain '{', '}', and '=' characters. The above is just an example and the actual String
to convert can contain nesting of values which is infinitely deep and can also contain an infinite number of "? = ?".