mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 14:57:27 +00:00
24 lines
503 B
C#
24 lines
503 B
C#
// Copyright (c) TribuFu. All Rights Reserved
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace CSharp
|
|
{
|
|
class Program
|
|
{
|
|
#if WINDOWS_PLATFORM
|
|
const string TribuFu = "TribuFu";
|
|
#else
|
|
const string TribuFu = "libTribuFu";
|
|
#endif
|
|
|
|
[DllImport(TribuFu)]
|
|
public static extern int Hello();
|
|
|
|
public static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("TribuFu SDK = " + Hello());
|
|
}
|
|
}
|
|
}
|