title: Store methods in an array and call them in C#
body: <p>In javascript we can do this:</p>
  
  <pre><code>var arr = [];
  
  function fooBar() {
      console.log('Hello World');
  }
  
  arr[0] = fooBar;
  
  arr[0]();
  </code></pre>
  
  <p>Essentially each function is a real object and I can store them in an array if I want to. My question is, since C# doesnt have pointers, what is the best way to handle such as scenario? I mean how can I store function references into arrays?</p>
  
  <p>I know we have something called delegates but im not sure if this is the right thing for the task...</p>