xamarin-macios/tests/bindings-framework-test/StructsAndEnums.cs

24 строки
529 B
C#
Исходник Обычный вид История

2016-04-27 00:48:51 +03:00
using System;
using System.Runtime.InteropServices;
namespace Bindings.Test
{
public static class CFunctions {
[DllImport ("__Internal")]
public static extern int theUltimateAnswer ();
#if !__MACOS__ && !XCFRAMEWORK
2016-04-27 00:48:51 +03:00
[DllImport ("__Internal")]
public static extern int object_theUltimateAnswer ();
[DllImport ("__Internal")]
public static extern int ar_theUltimateAnswer ();
#endif
2016-04-27 00:48:51 +03:00
}
// Verify that System.Drawing.Color usage compiles
public class Foo {
public void Bar (System.Drawing.Color color) { }
}
2016-04-27 00:48:51 +03:00
}