mirror of
https://github.com/tribufu/sdk-rust
synced 2025-06-15 18:54:19 +00:00
25 lines
503 B
C#
25 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());
|
|
}
|
|
}
|
|
}
|