From c6d41bf024b0a8ab5d4f03da4b066dd77e72d337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Thu, 10 Jan 2019 16:43:48 +0100 Subject: [PATCH] Last part of error handling --- Exceptionhandling/Program.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Exceptionhandling/Program.cs b/Exceptionhandling/Program.cs index 6894f1f..7c98de0 100644 --- a/Exceptionhandling/Program.cs +++ b/Exceptionhandling/Program.cs @@ -13,10 +13,8 @@ namespace Exceptionhandling try { - using(var streamreader = new StreamReader(@"c:\file.zip")) - { - var content = streamreader.ReadToEnd(); - } + var api = new YouTubeApi(); + var videos = api.GetVideos("nisse"); } catch (Exception ex) {