Design Pattern Examples
Overview of object-oriented design patterns
Program.Exercise Struct Reference

Represents a single exercise or example for a design pattern. More...

Collaboration diagram for Program.Exercise:
Collaboration graph

Public Member Functions

 Exercise (string nameOfExercise, Action exercise)
 Constructor.
 

Public Attributes

string name
 Name of the exercise.
 
Action exercise_to_run
 Method to call to run the exercise.
 

Detailed Description

Represents a single exercise or example for a design pattern.

Definition at line 26 of file Program.cs.

Constructor & Destructor Documentation

◆ Exercise()

Exercise ( string  nameOfExercise,
Action  exercise 
)
inline

Constructor.

Parameters
nameOfExerciseName of the exercise.
exerciseMethod to run (of type void ()(void)).

Definition at line 44 of file Program.cs.

References Program.Exercise.exercise_to_run, and Program.Exercise.name.

Member Data Documentation

◆ exercise_to_run

Action exercise_to_run

Method to call to run the exercise.

Definition at line 36 of file Program.cs.

Referenced by Program.Exercise.Exercise(), and Program.Run().

◆ name

string name

Name of the exercise.

Definition at line 31 of file Program.cs.

Referenced by Program.Exercise.Exercise(), Program.Help(), and Program.Run().


The documentation for this struct was generated from the following file: