Currently we do not really have a "official" way to assign an empty list.
If we do this:
var resource = new TestResource("r")
{
List = []
};
or
var resource = new TestResource("r");
resource.List.Clear();
the bicep produced by this resource would not have this list property at all.
Currently, if we want an empty list, we will have to assign it as an expression.