語言

ContainerSpan 類別

定義

public ref class ContainerSpan : System::CommandLine::Rendering::TextSpan, System::Collections::Generic::IEnumerable<System::CommandLine::Rendering::TextSpan ^>, System::Collections::Generic::IReadOnlyCollection<System::CommandLine::Rendering::TextSpan ^>, System::Collections::Generic::IReadOnlyList<System::CommandLine::Rendering::TextSpan ^>
public class ContainerSpan : System.CommandLine.Rendering.TextSpan, System.Collections.Generic.IEnumerable<System.CommandLine.Rendering.TextSpan>, System.Collections.Generic.IReadOnlyCollection<System.CommandLine.Rendering.TextSpan>, System.Collections.Generic.IReadOnlyList<System.CommandLine.Rendering.TextSpan>
type ContainerSpan = class
    inherit TextSpan
    interface IReadOnlyList<TextSpan>
    interface seq<TextSpan>
    interface IEnumerable
    interface IReadOnlyCollection<TextSpan>
Public Class ContainerSpan
Inherits TextSpan
Implements IEnumerable(Of TextSpan), IReadOnlyCollection(Of TextSpan), IReadOnlyList(Of TextSpan)
繼承
ContainerSpan
實作

建構函式

名稱 Description
ContainerSpan(TextSpan[])

屬性

名稱 Description
ContentLength
Count
End (繼承來源 TextSpan)
Item[Int32]
Parent (繼承來源 TextSpan)
Root (繼承來源 TextSpan)
Start (繼承來源 TextSpan)

方法

名稱 Description
Add(String)
Add(TextSpan)
GetEnumerator()
ToString() (繼承來源 TextSpan)
ToString(OutputMode) (繼承來源 TextSpan)
WriteTo(TextWriter, OutputMode)

明確介面實作

名稱 Description
IEnumerable.GetEnumerator()

擴充方法

名稱 Description
ToAsyncEnumerable<TSource>(IEnumerable<TSource>)

將 IEnumerable<T> 轉換成 IAsyncEnumerable<T>。

ToFrozenDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

根據指定的索引鍵選取器和項目選取器函式,從 FrozenDictionary<TKey,TValue> 建立 IEnumerable<T>。

ToFrozenDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根據指定的鍵選擇函式從 FrozenDictionary<TKey,TValue> a 建立 。IEnumerable<T>

ToFrozenSet<T>(IEnumerable<T>, IEqualityComparer<T>)

建立 FrozenSet<T> 一個符合指定值的 。

ToImmutableArray<TSource>(IEnumerable<TSource>)

從指定的集合建立不可變的陣列。

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>)

列舉和轉換序列,並使用指定的索引鍵和值比較子產生其內容的不可變字典。

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>)

列舉和轉換序列,並使用指定的索引鍵比較子產生其內容的不可變字典。

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

列舉和轉換序列,併產生其內容的不可變字典。

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根據序列的一些轉換,建構不可變的字典。

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

從現有的專案集合建構不可變的字典,將轉換函式套用至來源索引鍵。

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

列舉序列、產生其內容的不可變哈希集,並使用集合類型的指定相等比較子。

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

列舉序列,併產生其內容的不可變哈希集。

ToImmutableList<TSource>(IEnumerable<TSource>)

列舉序列,併產生其內容的不可變清單。

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>)

列舉和轉換序列,並使用指定的索引鍵和值比較子產生其內容的不可變排序字典。

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>)

列舉和轉換序列,並使用指定的索引鍵比較子產生其內容的不可變排序字典。

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

列舉和轉換序列,併產生其內容的不可變排序字典。

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

列舉序列、產生其內容的不可變排序集,並使用指定的比較子。

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

列舉序列,併產生其內容的不可變排序集。

適用於