Example #1
0
 /// <summary>
 /// Verifies the CS harp.
 /// </summary>
 /// <returns>The CS harp.</returns>
 /// <param name="csharp">Csharp.</param>
 private View VerifyCSharp(string csharp)
 {
     try
     {
         return(CSharpReader.Load <ContentView>(csharp));
     }
     catch (Exception e)
     {
         var errorView = new ErrorsContentView();
         errorView.Label.Text = e.InnerException?.Message;
         return(errorView);
     }
 }
Example #2
0
 /// <summary>
 /// Checks the xaml errors.
 /// </summary>
 /// <returns><c>true</c>, if xaml errors was checked, <c>false</c> otherwise.</returns>
 /// <param name="xaml">Xaml.</param>
 private View VerifyXaml(string xaml)
 {
     try
     {
         return(XamlReader.Load <ContentView>(xaml));
     }
     catch (Exception e)
     {
         var errorView = new ErrorsContentView();
         errorView.Label.Text = e.InnerException?.Message;
         return(errorView);
     }
 }