title: Cannot apply indexing with [] with an expression of type "UILibs"
body: <p>I have this code in C# [ Program.cs ]:</p>
  <pre><code>UILibs mlib = new UILibs();
  var selected = &quot;&quot;; // I have an Button_Click event that sets this to the button clicked name
  private void createUILibraryButton_Click(object sender, EventArgs e)
  {
      var func = mlib[&quot;UI_&quot;+selected+&quot;_MML&quot;]; // trying to get the function
  }
  </code></pre>
  <p>I get an error 'Cannot apply indexing with [] with an expression of type &quot;UILibs&quot;'</p>
  <p>Here is the UILibs Class:</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Net;
  using System.IO;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace UIC
  {
     
      class UILibs
      {
          public string UI_DarkRound_MML() // Border size: 4
          {
              return @&quot;
  local firstUIMML = 'Hello, first UI test'
  print(firstUIMML)
              &quot;;
          }
      }
      
  }
  
  </code></pre>
  <p>Im trying to index the UILibs class with &quot;[]&quot; to get the function ( Example: mlib[&quot;UI_DarkRound_MML&quot;] )</p>