title: 'MethodName' is not supported by the language
body: <p>So I am working on implementing some C++/cli and C# interop by using a wrapper class for my native C++ code.</p>
  
  <p>I can't seem to work past the error <code>'GetSharedData' is not supported by the language</code>. I've scoured the web for solutions and tried all of the suggestions with no luck.</p>
  
  <p>My code looks like:</p>
  
  <pre><code>// c++/cli wrapper code
  //
  // this wraps an abstract native c++ class
  public ref IHamWrapper
  {
  public:
      // default constructor
      IHamWrapper(){}
      // copy constructor
      IHamWrapper(const IHamWrapper%) {}
      // overloaded ()
      IHamWrapper operator () (NativeCode::INativeClass* data)
      {
          IHamWrapper ham;
          ham.hamData = data;
          return ham;
      }
      bool MethodA(){ wrappedObj-&gt;MethodA(); }
      bool MethodB(){ wrappedObj-&gt;MethodB(); }
      // etc...
  internal:
      IHamWrapper(NativeCode::INativeClass* data)
      {
          wrappedObj = data;
      }
      NativeCode::INativeClass* wrappedObj;
  };
  
  public ref class StaticHamCalls
  {
  public:
      static IHamWrapper% GetSharedData(int param1, int param2)
      {
          return ham(NativeCode::GetSharedData(param1, param2));
      }
  private:
      static IHamWrapper ham;
  }
  </code></pre>
  
  <p>And this is how I am trying to call it in C#</p>
  
  <pre><code>// C# code
  public void testFunction()
  {
      Int32 param1 = 5;
      Int32 param2 = 10;
      StaticHamCalls.GetSharedData(param1, param2);
  }
  </code></pre>