Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----C# (Main File):
- using System;
- using fstest;
- //Main
- class Entry
- {
- static int Main( string[] args )
- {
- Console.WriteLine(testfun.addtwo(2, 6));
- return 0;
- }
- }
- //-----F# (libtest.fs) (compiles to DLL):
- namespace fstest
- module testfun =
- let addtwo x y = x + y
- //-----compile.bat:
- fsc.exe libtest.fs --standalone --target:library
- csc.exe *.cs /r:libtest.dll
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement