ToStringFormatProperties
Fields
ListItemHeadersWhen there is a list of items (e.g. List
See the note below about why you don’t want a ListItems
When there is a ListItemHeader you don’t really want a ListItems separator because you will get something like: That comma at the end of the Index 1 line is actually the separator for Value1 since it’s not the 1st item NumberListItems
Defaults to ListItemNameIf Defaults to UseOneBasedListIndexNormally, the index used in the list item header will start with 0 but if you want them to start with 1, set Defaults to DefaultThere is a static If you want to use different defaults you can just set Extra notesFirst item indentationAs a general rule the first field of the and the output will look like: instead of Indenting listsWhen you have a list in your class that is define as something like: The indents for Lists can get a little weird because the Fields and ListItems properties can have an effect when the type of the list is a serializable class. In this scenario there are a few considerations. To make things cleaner it was decided that when the fields are going on a separate line all of the fields should be on the same indent level whereas normally the first field would not be indented and subsequent fields would. So you would have something like: instead of: or: Also, there is a question of what if ListItems.Indent = true and Fields.Indent = true In that scenario you could make an argument that there should then be two indents. However, things will be limited to one indent and you end up with this matrix:
By “ToString Indented” being yes means it will look like this: “ToString Indented” being no will look like this: |