Table of Contents

Class OperationProcessorCollection

Namespace
NSwag.Generation.Processors.Collections
Assembly
NSwag.Generation.dll

A collection of operation processors.

public class OperationProcessorCollection : Collection<IOperationProcessor>, IList<IOperationProcessor>, ICollection<IOperationProcessor>, IList, ICollection, IReadOnlyList<IOperationProcessor>, IReadOnlyCollection<IOperationProcessor>, IEnumerable<IOperationProcessor>, IEnumerable
Inheritance
OperationProcessorCollection
Implements
Inherited Members

Constructors

OperationProcessorCollection()

public OperationProcessorCollection()

Methods

Replace<T>(IOperationProcessor)

Replaces the first element of type T with newItem.

public bool Replace<T>(IOperationProcessor newItem) where T : IOperationProcessor

Parameters

newItem IOperationProcessor

The replacement item.

Returns

bool

true, if an item was replaced; otherwise false.

Type Parameters

T

The operation processor type to replace.

TryGet<T>()

Gets an operation processor of the specified type.

public T TryGet<T>()

Returns

T

The operation processor.

Type Parameters

T

The operation processor type.