public static CharVector Repeat(byte value, int count) { IntPtr intPtr = AppUtilPINVOKE.CharVector_Repeat(value, count); CharVector result = (!(intPtr == IntPtr.Zero)) ? new CharVector(intPtr, true) : null; if (AppUtilPINVOKE.SWIGPendingException.Pending) { throw AppUtilPINVOKE.SWIGPendingException.Retrieve(); } return(result); }