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.
파일 보기 프로젝트 열기: Whathecode/NET-Core-Library-Extension

공개 메소드들

메소드 설명
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