Skip to content

Trying to compile a template in Xamarin.iOS results in a System.NotImplementedException #458

Description

@mrbelk

Describe the bug

When I try to compile a template in Xamarin.iOS, a System.NotImplementedException is thrown with a message of "byref delegate." I am using HandleBars.Net v2.0.8.

I should note that an earlier version of our app, using HandleBars.Net 1.11.5 works fine.

Expected behavior:

I would expect that the template would compile correctly as it used to before.

Test to reproduce

[Fact]
public void Descriptive_Test_Name_Here()
{
    var handlebars = Handlebars.Create();
    var render = handlebars.Compile("{{input}}");
    object data = new { input = 42 };
    
    var actual = render(data);
    Assert.Equal(42, actual);
}

Other related info

The only thing I can find with a google search is here: dotnet/runtime#31075, but this issue was closed because it's in the mono runtime.

I suppose this could be related to the Xamarin.iOS version or the Mono runtime version that the previous version was compiled against.

After submitting the issue

Please consider contributing to the project by submitting a PR with a fix to the issue.
This would help to solve your problem in a shorter time as well as help other users of the project.

In case you do not know where to start - feel free to ask for help in the issue thread.

Building an active community is essential for any project survival as time of maintainers is limited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions