private void sendImgRsp(GalleryProviderConnection connection, long id, string orgName, long orgSize, int orgWidth, int orgHeight) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final TBModelJson msg = new TBModelJson(id, orgName, mImgData, orgSize, orgWidth, orgHeight); ImageFetchModelImpl.TBModelJson msg = new ImageFetchModelImpl.TBModelJson(id, orgName, mImgData, orgSize, orgWidth, orgHeight); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final ImgRespMsg uresponse = new ImgRespMsg(mResult, mReason, msg); ImageFetchModelImpl.ImgRespMsg uresponse = new ImageFetchModelImpl.ImgRespMsg(mResult, mReason, msg); string uJsonStringToSend = ""; try { uJsonStringToSend = uresponse.toJSON().ToString(); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final org.json.JSONException e) catch (JSONException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } if (mConnectionsMap != null) { try { connection.send(GALLERY_CHANNEL_ID, uJsonStringToSend.GetBytes()); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final java.io.IOException e) catch (IOException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } } }