Table of Contents

IniValue Class

Definition

Namespace
Bodu.Text.Ini.Nodes
Assembly
Bodu.Text.Ini.dll
Package
Bodu.Text.Ini 1.0.0
Source
IniValue.cs

Represents a string-valued leaf in a mutable INI document tree.

public sealed class IniValue : IniNode
Inheritance
IniValue
Inherited Members
Extension Methods

Constructors

IniValue(string)

Initializes a new instance of the IniValue class with the supplied value.

public IniValue(string value)

Parameters

value string

The string value.

Exceptions

ArgumentNullException

Thrown when value is null.

Properties

Value

Gets or sets the string value.

public string Value { get; set; }

Property Value

string

The value; never null.

Exceptions

ArgumentNullException

Thrown when the assigned value is null.

ValueKind

Gets the value kind of this node.

public override IniValueKind ValueKind { get; }

Property Value

IniValueKind

The node's IniValueKind.

Methods

DeepClone()

Creates a deep copy of this node, including its comment trivia.

public override IniNode DeepClone()

Returns

IniNode

The cloned node.

WriteTo(ref Utf8IniWriter)

Writes this node's INI representation to the supplied writer.

public override void WriteTo(ref Utf8IniWriter writer)

Parameters

writer Utf8IniWriter

The writer that receives the INI bytes.

Applies to

ProductVersions
.NET8, 10