From d5ba8b0d8b8a46de7136f4782a91eac777da7dd2 Mon Sep 17 00:00:00 2001 From: Kai Date: Thu, 17 Aug 2017 15:07:02 +0200 Subject: [PATCH] Updated first example billing could not be used in finally-block if defined within the try-block. --- docs/GettingStarted.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index bb49c1b..d20ae1b 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -12,9 +12,9 @@ It is drop dead simple to gain access to the In-App Billing APIs in any project. ```csharp public async Task MakePurchase() { + var billing = CrossInAppBilling.Current; try { - var billing = CrossInAppBilling.Current; var connected = await billing.ConnectAsync(); if(!connected) return false; @@ -148,4 +148,4 @@ protected override void OnActivityResult(int requestCode, Result resultCode, Int ``` -<= Back to [Table of Contents](README.md) \ No newline at end of file +<= Back to [Table of Contents](README.md)