❔ Custom "block" statement such as while..do

Hello,

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;
    }
}
Was this page helpful?