class MaClasse { private Modifier modifier; private int counter; public MaClasse () { this.modifier = new Modifier (this.counter); this.counter = 3; } public void Test () { Console.WriteLine ("avant: " + this.counter); // devrait afficher "avant: 3" this.modifier.SetValue (12); Console.WriteLine ("après: " + this.counter); // devrait afficher "après: 12" } } class Modifier { // attributs ? private /*FIXME*/ myRef; public Modifier (ref T myVar) { myRef = /*FIXME*/; } public void SetValue (T value) { this.myRef = value; } }