title: Replacing Dictionary with function
body: <p>I'm making a game with character attributes, like strength, agility, etc. I have them all in a <code>&lt;string, double&gt;</code> dictionary. I need to implement "mods" to attributes from equipment, buffs, etc. I'd like to replace all instances of <code>"CurrentStats[Key]"</code> with a <code>function(string input)</code> of some sort, via Find/Replace. (I have HUNDREDS of references to it, I can't do that all by hand)</p>
  
  <p>So basically, I'm looking for a way to write a function where I can somehow write </p>
  
  <p><code>Function("Strength") = 5;</code> for assignment </p>
  
  <p>while still being able to use   </p>
  
  <p><code>if(Function("Strength") == 5)</code> for fetching.</p>
  
  <p>Is this possible?</p>