Hey,
Is it possible to set a value for a private variable from outside the
class in which it was declared using perhaps reflection?
Something like
class A {
private string s;
}
class B {
private void Foo (string str)
{
A a = new A ();
// Here I need a way to set the value of A.s, without making it
public
}
}
Is something like this possible? I dont mind if its in a hacky
fashion :-)
Lukas