A
Andrew
I cannot figure out why I cannot change the struct value
in the following reflective code...
///////////////////////////////////////////////////////
class MyClass
{
public struct mys
{
public string mystring;
}
static void Main(string[] argv)
{
mys s = new mys();
Type t = s.GetType();
t.GetField("mystring").SetValue
(s, "hello world");
}
}
///////////////////////////////////////////////////////
Any help appreciated... Thanks!!!
in the following reflective code...
///////////////////////////////////////////////////////
class MyClass
{
public struct mys
{
public string mystring;
}
static void Main(string[] argv)
{
mys s = new mys();
Type t = s.GetType();
t.GetField("mystring").SetValue
(s, "hello world");
}
}
///////////////////////////////////////////////////////
Any help appreciated... Thanks!!!