Exemplo n.º 1
0
 static void Main(string[] args)
 {
     try
     {
         var api    = new YouTubeApi();
         var videos = api.GetVideos("mosh");
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //most specific catch first, most generic catch last
            try
            {
                //using (var streamReader = new StreamReader(@"c\file.zip"))
                //{
                //    var content = streamReader.ReadToEnd();

                //}

                var api   = new YouTubeApi();
                var video = api.GetVideos("Jack");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }