public int GetSizeLayer(int layerNr) { int ret = VisionLabPINVOKE.BPN_GetSizeLayer(swigCPtr, layerNr); if (VisionLabPINVOKE.SWIGPendingException.Pending) { throw VisionLabPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }