Is it possible to use rhino developer docs samples in C# grasshopper?

private void RunScript(Mesh mesh, List<Point3d> points, Vector3d vector, ref object A)
{
  int[] indices;
  var prj_points = Intersection.ProjectPointsToMeshesEx(new[] {mesh}, points, vector, 0, out indices);
  A = prj_points;
}

ProjectPointsToMesh.gh (9.7 KB)