C# Класс Whathecode.System.Algorithm.Loop.OperationHook

Class which allows to hook operations into certain iterations of loop. TODO: Implement abstractly (generalized for other classes?) when there might be a need to.
Показать файл Открыть проект

Открытые методы

Метод Описание
AllButLast ( Action operation ) : void

Hook an operation at every iteration of the loop except the last.

DoActions ( LoopIteration currentIteration ) : void

Performs the actions for a given iteration, when available.

First ( Action operation ) : void

Hook an operation the first iteration of the loop.

OperationHook ( List iterationList ) : System

Create a new operation hook for a given loop.

Описание методов

AllButLast() публичный Метод

Hook an operation at every iteration of the loop except the last.
public AllButLast ( Action operation ) : void
operation Action The operation to be executed.
Результат void

DoActions() публичный Метод

Performs the actions for a given iteration, when available.
public DoActions ( LoopIteration currentIteration ) : void
currentIteration LoopIteration The current iteration to do actions for.
Результат void

First() публичный Метод

Hook an operation the first iteration of the loop.
public First ( Action operation ) : void
operation Action The operation to be executed.
Результат void

OperationHook() публичный Метод

Create a new operation hook for a given loop.
public OperationHook ( List iterationList ) : System
iterationList List The list of iterations in which to hook.
Результат System