D
daisy
Hi,
I'm trying to write a general-purpose function that will take a Type t
and an object o as parameters, and then do some work within the
function that includes casting the object as a Type t and accessing
o's members and methods. (The object will always be a struct, if that
helps or hinders the situation.)
Is there a nice way to do this, perhaps using delegate types? I've
tried many things and searched lots groups, with no luck.
Thanks!
Daisy
I'm trying to write a general-purpose function that will take a Type t
and an object o as parameters, and then do some work within the
function that includes casting the object as a Type t and accessing
o's members and methods. (The object will always be a struct, if that
helps or hinders the situation.)
Is there a nice way to do this, perhaps using delegate types? I've
tried many things and searched lots groups, with no luck.

Thanks!
Daisy