Hi,
I want to set a queue of pixel coordinates.
the struct is:
struct point
{
public int x;
public int y;
public int basex;
public int basey;
};
if I use q.Enqueue(pnt) it works fine, but this line:
pnt = q.Dequeue;
make the compile error:
"Cannot implicitly convert type 'object' to 'Interface.point'"
(Interface is my namespace)
Is there any way to convert type object to my struct?
Thanks
I want to set a queue of pixel coordinates.
the struct is:
struct point
{
public int x;
public int y;
public int basex;
public int basey;
};
if I use q.Enqueue(pnt) it works fine, but this line:
pnt = q.Dequeue;
make the compile error:
"Cannot implicitly convert type 'object' to 'Interface.point'"
(Interface is my namespace)
Is there any way to convert type object to my struct?
Thanks