Class LaconfigWritingOptions
Specifies how Laconic configuration should be written as text. Use LaconfigWritingOptions.Compact or LaconfigWritingOptions.PrettyPrint static properties for typical options
Inheritance
System.Object
LaconfigWritingOptions
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.CodeAnalysis.Laconfig
Assembly: Azos.dll
Syntax
public class LaconfigWritingOptions : IConfigurable
Fields
AttributeLineBreak
Declaration
[Config]
public bool AttributeLineBreak
Field Value
Type | Description |
---|---|
System.Boolean |
DontWriteRootSectionDeclaration
If true, does not write the very top node declaration: name, value and { }. The attributes are still written as usual. This is needed for storage conf in db where the root node is not needed to save space
Declaration
[Config]
public bool DontWriteRootSectionDeclaration
Field Value
Type | Description |
---|---|
System.Boolean |
IndentWidth
Declaration
[Config]
public int IndentWidth
Field Value
Type | Description |
---|---|
System.Int32 |
SectionLineBreak
Declaration
[Config]
public bool SectionLineBreak
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
Compact
Writes Laconfig without line breaks between members and no indenting. Suitable for data transmission
Declaration
public static LaconfigWritingOptions Compact { get; }
Property Value
Type | Description |
---|---|
LaconfigWritingOptions |
PrettyPrint
Writes Laconfig suitable for printing/screen display
Declaration
public static LaconfigWritingOptions PrettyPrint { get; }
Property Value
Type | Description |
---|---|
LaconfigWritingOptions |
Methods
Configure(IConfigSectionNode)
Declaration
public void Configure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |