❔ Custom "block" statement such as while..do
Hello,
is it possible to build a custom block? For example
is it possible to build a custom block? For example
// usage
DoRequestAsync
{
Categories = await _stockBrowser.GetCategoriesAsync();
}
// code behind DoRequest
private async Task DoRequestAsync()
{
try
{
// children
}
catch (Exception e)
{
Console.WriteLine(e);
Error = true;
}
}/close await DoRequestAsync(async () =>
{
Categories = await _stockBrowser.GetCategoriesAsync();
}):