public static CFUrl FromFile(string filename)
{
using (var str = new CFString (filename)){
IntPtr handle = CFURLCreateWithFileSystemPath (IntPtr.Zero, str.Handle, CFUrlPathStyle.POSIX, false);
if (handle == IntPtr.Zero)
return null;
return new CFUrl (handle);
}
}