LILAC
Language to language Interop LAyer Compiler
Loading...
Searching...
No Matches
CSModule.cs
Go to the documentation of this file.
1
using
System.Runtime.InteropServices;
2
using
Lilac.Annotations;
3
4
namespace
Lilac.Test
;
5
6
[Export]
7
public
enum
CsEnum
8
{
9
A
,
10
B
,
11
C
= -1
12
}
13
14
[Export]
15
public
partial class
CsModule
16
{
17
[Export]
18
public
CsModule
(
string
a)
19
{
20
}
21
22
[Export]
23
public
string
ModuleEntryPoint
(
string
str)
24
{
25
Console.WriteLine($
"{str} - printed from C#"
);
26
return
str;
27
}
28
29
~CsModule
()
30
{
31
GCHandle.Alloc(
this
, GCHandleType.Pinned).Free();
32
}
33
}
Lilac.Test.CsModule
Definition
CSModule.cs:16
Lilac.Test.CsModule.CsModule
CsModule(string a)
Definition
CSModule.cs:18
Lilac.Test.CsModule.ModuleEntryPoint
string ModuleEntryPoint(string str)
Definition
CSModule.cs:23
Lilac.Test
Definition
CSModule.cs:4
Lilac.Test.CsEnum
CsEnum
Definition
CSModule.cs:8
Lilac.Test.CsEnum.C
@ C
Lilac.Test.CsEnum.A
@ A
Lilac.Test.CsEnum.B
@ B
langs
csharp
frontend
src
Lilac.Test
CSModule.cs
Generated on Sat Oct 5 2024 07:56:20 for LILAC by
1.12.0