TreeAlgorithmBase1.Alg

TreeAlgorithmBase<T>.Alg method

Processes a node of a tree.

public abstract void Alg(T el, int level)
ParameterTypeDescription
elTNode to process.
levelInt32Tree node level.

Examples

Shows how to detect broken project’s structure.

var project = new Project(DataDir + "ParentChildTasks.mpp");

// check the project's structure.
// The <see cref="TasksException"> will be thrown if the project structure is incorrect.
try
{
    TaskUtils.Apply(project.RootTask, new CheckCircuit(), 0);
}
catch (TasksException ex)
{
    Console.WriteLine(ex);
}

See Also