22 lines
272 B
C#
22 lines
272 B
C#
|
using System;
|
||
|
using System.Runtime.InteropServices;
|
||
|
|
||
|
class Test {
|
||
|
[DllImport (Libs.MyLib)]
|
||
|
private static extern void foo ();
|
||
|
|
||
|
public static void Main ()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Libs : Bar {
|
||
|
}
|
||
|
|
||
|
class Bar : Foo {
|
||
|
internal const string MyLib = "SomeLibrary";
|
||
|
}
|
||
|
|
||
|
class Foo {
|
||
|
}
|