CompletionList<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a readonly list of CompletionItems or CompletionItemWithHighlights capable of efficient storing of large number of items.
public sealed class CompletionList<T> : IDisposable, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IReadOnlyCollection<T>, System.Collections.Generic.IReadOnlyList<T>
type CompletionList<'T> = class
interface IReadOnlyList<'T>
interface seq<'T>
interface IEnumerable
interface IReadOnlyCollection<'T>
interface IDisposable
Public NotInheritable Class CompletionList(Of T)
Implements IDisposable, IEnumerable(Of T), IReadOnlyCollection(Of T), IReadOnlyList(Of T)
Type Parameters
- T
- Inheritance
-
CompletionList<T>
- Implements
Remarks
CompletionList<T> instances are only valid during the lifetime of a pertinent IAsyncCompletionSession and should not be referenced beyond that.
Properties
Count |
Gets the number of CompletionItems in the list. |
Empty |
Empty instance of CompletionList<T>. |
IsEmpty |
Gets whether the list of CompletionItems is empty. |
Item[Int32] |
Gets CompletionItem at the specified index. |
Methods
GetEnumerator() |
Returns an enumerator that iterates through this list of CompletionItems. |
Explicit Interface Implementations
IDisposable.Dispose() | |
IEnumerable.GetEnumerator() |
Extension Methods
EmptyIfNull<T>(IEnumerable<T>) |
Return this enumeration in case it is not null. In case it is null return empty enumeration. |