nameof() is a compile time feature, and returns the name of the variable.
nameof(stackLayout) == “stackLayout”
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
How can I check the nameof to check the name like this:
if (nameof(stackLayout) == "StackLayoutCurrentUV")
{
uv = true;
}
else
{
uv = false;
}
I tried the above but did not work
Kind Regards,
Jassim Al Rahma
nameof() is a compile time feature, and returns the name of the variable.
nameof(stackLayout) == “stackLayout”