internal static bool TryGetErrorResult2(RequestContext requestContext, HttpException he, out ResourceErrorActionResult actionResult)
 {
     foreach (ContentType responseFormat in requestContext.GetResponseFormats())
     {
         WebApiEnabledAttribute dummy = new WebApiEnabledAttribute();
         if (dummy.TryGetErrorResult(he, responseFormat, out actionResult))
         {
             return true;
         }
     }
     actionResult = null;
     return false;
 }
 internal static bool TryGetErrorResult2(RequestContext requestContext, HttpException he, out ResourceErrorActionResult actionResult) {
     List<ContentType> responseFormats = requestContext.GetResponseFormats();
     for (int i = 0; i < responseFormats.Count; ++i) {
         ContentType responseFormat = responseFormats[i];
         WebApiEnabledAttribute dummy = new WebApiEnabledAttribute();
         if (dummy.TryGetErrorResult(he, responseFormat, out actionResult)) {
             return true;
         }
     }
     actionResult = null;
     return false;
 }