Category Archives: generic

Draw a tree with nodes containing pictures in C#

This example uses the generic TreeNode class described in the following posts to draw a tree with nodes containing pictures. Make a generic TreeNode class in C#, Part 1 Make a generic TreeNode class in C#, Part 2 The program … Continue reading

Posted in classes, generic, OOP | Tagged , , , , , , , , , , , , , , , | 1 Comment

Make a generic TreeNode class in C#, Part 2

This post explains how the TreeNode class uses its generic TreeNode class to arrange and draw a tree. For information about that classes used by this example and how to define the generic TreeNode class it uses, see Make a … Continue reading

Posted in classes, generic, OOP | Tagged , , , , , , , , , , | 4 Comments

Make a generic TreeNode class in C#, Part 1

This example shows how to build a generic TreeNode class that can draw a tree holding just about anything. This is kind of a tricky example, so I’m doing it in two parts. This entry explains the classes and interfaces … Continue reading

Posted in classes, generic, OOP | Tagged , , , , , , , , , , | 25 Comments

Make a generic priority queue class in C#

This example shows how to make a generic priority queue class. A generic class is similar to a regular class except it can take one or more parameters that are types. The class can then use the type to define … Continue reading

Posted in classes, generic, OOP | Tagged , , , , , , , , , | 3 Comments