3
Reply

Get value from object

none

none

Nov 6 2009 4:37 PM
4.2k
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)
Next Recommended Forum