语言

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
实现

构造函数

名称 说明
ContainerSpan(TextSpan[])

属性

名称 说明
ContentLength
Count
End (继承自 TextSpan)
Item[Int32]
Parent (继承自 TextSpan)
Root (继承自 TextSpan)
Start (继承自 TextSpan)

方法

名称 说明
Add(String)
Add(TextSpan)
GetEnumerator()
ToString() (继承自 TextSpan)
ToString(OutputMode) (继承自 TextSpan)
WriteTo(TextWriter, OutputMode)

显式接口实现

名称 说明
IEnumerable.GetEnumerator()

扩展方法

名称 说明
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>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>)

枚举序列并生成其内容的不可变排序集。

适用于