none

none

  • NA
  • 91
  • 0

Get value from object

Nov 6 2009 4:37 PM
if i have:

Point a = new Point(10,10);
Object b = (object)a;

how can i get values (10 and 10) from 'b' object?

somthing like this:
Point c = new Point();
c.X = B.X;

in my case, i need to return a Point value... and in pseudocode is:

return (System.Drawing.Point)b;

or some hints please... thanks

Answers (3)