Table of Contents

Class RootBlock

Namespace
SunamoEditorConfig
Assembly
SunamoEditorConfig.dll

Represents the root configuration block in an EditorConfig file containing global settings

public class RootBlock
Inheritance
RootBlock
Derived
Inherited Members
Extension Methods

Properties

Definitions

Gets or sets the list of configuration definitions in this block

public List<Definition> Definitions { get; set; }

Property Value

List<Definition>

Methods

Parse(string?, List<string>?)

Parses a root block from either a block string or a list of lines. At least one parameter must be provided.

public static ResultWithExceptionEditorConfig<RootBlock> Parse(string? block, List<string>? lines)

Parameters

block string

The block string to parse (optional if lines is provided)

lines List<string>

The list of lines to parse (optional if block is provided)

Returns

ResultWithExceptionEditorConfig<RootBlock>

A result containing the parsed RootBlock or an exception if parsing fails

ToString()

Converts the RootBlock to its string representation in EditorConfig format

public override string ToString()

Returns

string

The EditorConfig formatted string containing all definitions