C
Coder Coder
Hi,
I have the following:
private enum LineFormat { LEFT_TO_RIGHT, RIGHT_TO_LEFT };
private void DrawLine ( LineFormat )
{
// draw differently depending on the parameter
}
So how do have an enum as a parameter. I know I can put an int
parameter and it will be fine, but I want other people using the
libraries to know that Im expexcting a LineFormat.
- thanks
I have the following:
private enum LineFormat { LEFT_TO_RIGHT, RIGHT_TO_LEFT };
private void DrawLine ( LineFormat )
{
// draw differently depending on the parameter
}
So how do have an enum as a parameter. I know I can put an int
parameter and it will be fine, but I want other people using the
libraries to know that Im expexcting a LineFormat.
- thanks