C# Problem in the functional block with methods

Hi. I wanted to create a functional block in C# with methods that process strings (I used IecString80 as an example). But I got the following effect: the library compiles normally, it is added to PLCNET Engineer, but when trying to use the above method, the project in PLCNEXT Engineer simply does not build. The Error List contains the error CILG0001 Internal Error. I also noticed that the same problem occurs when trying to pass a structure (I also made it in C#) to a method.

C# code:
using Iec61131.Engineering.Prototypes.Common;
using Iec61131.Engineering.Prototypes.Methods;
using Iec61131.Engineering.Prototypes.Pragmas;
using Iec61131.Engineering.Prototypes.Types;
using Iec61131.Engineering.Prototypes.Variables;
using System;
using System.Iec61131Lib;
using System.Runtime.InteropServices;

namespace PLCnextFirmwareLibrary1
{
[FunctionBlock]
public class FunctionBlock1
{
[Initialization]
public void __Init(){}

[Execution]
public void __Process(){}

[User]
public void test([Input] IecString80 str) {}
}
}
Example.png

Hi adryian4ik,
try to change your code from
public void test([Input] IecString80 str) {}
to
public void test([Input] ref IecStringEx str) {}

BR
DivisionByzero

Example.pngThanks, it worked, but the VS project returned an error. I had to disable the Iec 044 check and it worked.