public Match getMatch(string userAgent) { global::System.IntPtr cPtr = FiftyOneDegreesPatternV3PINVOKE.Provider_getMatch__SWIG_0(swigCPtr, userAgent); Match ret = (cPtr == global::System.IntPtr.Zero) ? null : new Match(cPtr, true); if (FiftyOneDegreesPatternV3PINVOKE.SWIGPendingException.Pending) { throw FiftyOneDegreesPatternV3PINVOKE.SWIGPendingException.Retrieve(); } return(ret); }