LILAC
Language to language Interop LAyer Compiler
Loading...
Searching...
No Matches
CSModule.cs
Go to the documentation of this file.
1using System.Runtime.InteropServices;
2using Lilac.Annotations;
3
4namespace Lilac.Test;
5
6[Export]
7public enum CsEnum
8{
9 A,
10 B,
11 C = -1
12}
13
14[Export]
15public 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}
CsModule(string a)
Definition CSModule.cs:18
string ModuleEntryPoint(string str)
Definition CSModule.cs:23