public bool GetRelatedShapes(int referenceIndex, SpatialRelation relation, ref int[] resultArray) { object results = null; if (_shapefile.GetRelatedShapes(referenceIndex, (tkSpatialRelation)relation, ref results)) { resultArray = results as int[]; return(true); } return(false); }