I was going though C# course and found "Default Parameter Value"
I know we have made wishes from very early version of B4A (year 2016 maybe), but again I see the benefit of it, when we have big project.
We already have GetDefault() method for class, so maybe we can have the reverse "default parameter value" in the Sub.
B4X:
static void MyMethod(string country = "Norway")
{
Console.WriteLine(country);
}
static void Main(string[] args)
{
MyMethod("Sweden");
MyMethod("India");
MyMethod();
MyMethod("USA");
}
// Sweden
// India
// Norway
// USA
I know we have made wishes from very early version of B4A (year 2016 maybe), but again I see the benefit of it, when we have big project.
We already have GetDefault() method for class, so maybe we can have the reverse "default parameter value" in the Sub.