Class LaconfigWriter
Writes Laconic Configuration into a stream or string
Inheritance
System.Object
LaconfigWriter
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 static class LaconfigWriter
Methods
Indent(Int32, LaconfigWritingOptions)
Returns a padding string for specified level per set options
Declaration
public static string Indent(int level, LaconfigWritingOptions opt)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | |
LaconfigWritingOptions | opt |
Returns
Type | Description |
---|---|
System.String |
Write(Configuration, LaconfigWritingOptions)
Writes LaconicConfiguration data to the string
Declaration
public static string Write(Configuration data, LaconfigWritingOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | data | |
LaconfigWritingOptions | options |
Returns
Type | Description |
---|---|
System.String |
Write(Configuration, Stream, LaconfigWritingOptions, Encoding)
Writes LaconicConfiguration data to the stream
Declaration
public static void Write(Configuration data, Stream stream, LaconfigWritingOptions options = null, Encoding encoding = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | data | |
System.IO.Stream | stream | |
LaconfigWritingOptions | options | |
System.Text.Encoding | encoding |
Write(Configuration, StringBuilder, LaconfigWritingOptions)
Appends LaconicConfiguration data into the instance of StringBuilder
Declaration
public static void Write(Configuration data, StringBuilder sb, LaconfigWritingOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | data | |
System.Text.StringBuilder | sb | |
LaconfigWritingOptions | options |
Write(IConfigSectionNode, LaconfigWritingOptions)
Writes LaconicConfiguration data to the string
Declaration
public static string Write(IConfigSectionNode data, LaconfigWritingOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | data | |
LaconfigWritingOptions | options |
Returns
Type | Description |
---|---|
System.String |
Write(IConfigSectionNode, Stream, LaconfigWritingOptions, Encoding)
Writes LaconicConfiguration data to the stream
Declaration
public static void Write(IConfigSectionNode data, Stream stream, LaconfigWritingOptions options = null, Encoding encoding = null)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | data | |
System.IO.Stream | stream | |
LaconfigWritingOptions | options | |
System.Text.Encoding | encoding |
Write(IConfigSectionNode, StringBuilder, LaconfigWritingOptions)
Appends LaconicConfiguration data into the instance of StringBuilder
Declaration
public static void Write(IConfigSectionNode data, StringBuilder sb, LaconfigWritingOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | data | |
System.Text.StringBuilder | sb | |
LaconfigWritingOptions | options |