94b2861243
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
22 lines
322 B
C#
22 lines
322 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
abstract class Foo {
|
|
public abstract void Bar (int a);
|
|
}
|
|
|
|
class Bar {
|
|
|
|
[DllImport ("foo.dll")]
|
|
public extern static void Pan ([MarshalAs (UnmanagedType.I4)] int i);
|
|
}
|
|
|
|
public class Baz {
|
|
|
|
public void PrintAnswer ()
|
|
{
|
|
Console.WriteLine ("answer: {0}", 42);
|
|
}
|
|
}
|
|
|