I became acquainted with the development of Mono in Linux, in the children's steps. I am trying to name the Linux C libraries. This page , theoretically, tells me how, but when I type the code below in MonoDevelop 2.2.2 (Fedora 13), I get "Parse error (CS8025)" in "private static extern int getpid ( ); ". In addition, the help system does not work.
using System; using System.Runtime.InteropServices; [DllImport("libc.so")] private static extern int getpid(); namespace LinuxCaller { class MainClass { public static void Main (string[] args) { Console.WriteLine ("Hello World!"); } } }
Jccyc source share