oh thanks is there any documentation around that or is it better to look into the source?
At a really basic level, you simply declare a "static extern" method with a "DllImport" attribute attached to it. For example, you could call "printf" from libc like so:
[DllImport("libc")]
public static extern void printf(string message);
static void Main()
{
printf("Hello World");
}