CompletionSourceList Class

Definition

A list of completion sources to be used when providing completions for completion.

public ref class CompletionSourceList : System::Collections::Generic::IEnumerable<System::CommandLine::Completions::ICompletionSource ^>, System::Collections::Generic::IReadOnlyCollection<System::CommandLine::Completions::ICompletionSource ^>, System::Collections::Generic::IReadOnlyList<System::CommandLine::Completions::ICompletionSource ^>
public class CompletionSourceList : System.Collections.Generic.IEnumerable<System.CommandLine.Completions.ICompletionSource>, System.Collections.Generic.IReadOnlyCollection<System.CommandLine.Completions.ICompletionSource>, System.Collections.Generic.IReadOnlyList<System.CommandLine.Completions.ICompletionSource>
type CompletionSourceList = class
    interface IReadOnlyList<ICompletionSource>
    interface seq<ICompletionSource>
    interface IEnumerable
    interface IReadOnlyCollection<ICompletionSource>
Public Class CompletionSourceList
Implements IEnumerable(Of ICompletionSource), IReadOnlyCollection(Of ICompletionSource), IReadOnlyList(Of ICompletionSource)
Inheritance
CompletionSourceList
Implements

Constructors

CompletionSourceList()

Properties

Count

Gets the number of elements in the collection.

Item[Int32]

Gets the element at the specified index in the read-only list.

Methods

Add(ICompletionSource)

Adds a completion source to the list.

Clear()

Clears the completion sources.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through the collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Extension Methods

Add(CompletionSourceList, CompletionDelegate)

Adds a completion source using a delegate.

Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)

Adds a completion source using a delegate.

Add(CompletionSourceList, String[])

Adds a completion source using a delegate.

Applies to