public void PassByRef()
        {
            Loopings obj = new Loopings();
            var      typ = obj.GetType().GetField("localvar", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);

            typ.SetValue(obj, "Not so much");
        }
Esempio n. 2
0
 public void Caller(object obj, int x)
 {
     Loopings xy = (Loopings)obj;
 }