Share via


AnalyzerConfig.Section 類別

定義

代表 editorconfig 檔案的具名區段,其中包含名稱,後面接著一組索引鍵/值組。

public sealed class AnalyzerConfig.Section
type AnalyzerConfig.Section = class
Public NotInheritable Class AnalyzerConfig.Section
繼承
AnalyzerConfig.Section

建構函式

AnalyzerConfig.Section(String, ImmutableDictionary<String,String>)

代表 editorconfig 檔案的具名區段,其中包含名稱,後面接著一組索引鍵/值組。

屬性

Name

編輯器組態檔區段規格中直接出現的名稱。

NameComparer

用來比較 Name 區段的 。 由 editorconfig 指定為區分大小寫的比較。

Properties

本節的索引鍵和值。 所有索引鍵都會根據 EditorConfig 規格區分大小寫,而且索引鍵不區分大小寫。 如果值出現在 中 ReservedValues ,或對應的索引鍵位於 ReservedKeys 中,則值為小寫。 否則,這些值就是來源中存在的常值。

PropertiesKeyComparer

用來比較 中的 Properties 索引鍵。 editorconfig 規格會根據 Unicode 小寫規則,定義不區分大小寫的屬性索引鍵。

適用於