Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

This link shows how extension methods will be consumed within IronPython.

So in DeltaShell it looks something like this:

Code Block
titleProjectExtensions
[assembly: Microsoft.Scripting.Runtime.ExtensionType(typeof(Project), typeof(ProjectExtensions))]
namespace DeltaShell.Plugins.Scripting.Extensions
{
    public static class ProjectExtensions
    {
        public static string Laugh(this Project project)
        {
            return "Hahaha";
        }
    }
}