title: .Net Core dynamically compile C# code passed in as a string
body: <p>I'd like to store Code for C# Objects or Method in strings and dynamically create an object and call the method from a Parent/Main Application running in .NET Core. </p>
  
  <p>Something Like:</p>
  
  <pre><code>methodString = @"
  public bool check(string input)
  {       
    return input.Length &gt; 10;
  }";
  
  var dynamicObject = new dynamicCode.FromString(methodString);
  var result = dynamicObject.Check("TestValue");
  </code></pre>
  
  <p>How could something like this be implemented in .net core</p>