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

23 строки
529 B
C#

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