   [C#] Debugging with dictionaries and values
  I would like to make my debugger easier to use by adding the ability to add any type of parameter that can be displayed onscreen.Currently I have a dictionary of objects organised by their string name:Dictionary<string, object> debugParams = new Dictionary<string, object>(15);If I want to add to the dictionary then I can use the following method:public void AddParameter(string paramName, object param){   debugParams.Add(paramName, param);}Then I can add any kind of object to the dictionary as follows:debug_Tools.AddParameter("Player 1 Position", position);The parameter is then drawn as shown:    foreach (KeyValuePair<string, object> kvp in debugParams)    {   position.Y += 15;   string stringCurrent = string.Format(kvp.Key + ": {0}", kvp.Value);   sprite_Batch.DrawString(font, stringCurrent, position, Color.White);    }The problem I'm having though is that the kvp.Value is not being updated automatically as the parameter is updated in whatever class it originated from.  I can't pass an object by reference either; for example I get the following error with a boolean value:Argument '2': cannot convert from 'ref bool' to 'ref object'What should I do?   