SyntaxFix
Write A Post
Hire A Developer
Questions
Another use case of nameof is to check tab pages, instead of checking the index you can check the Name property of the tabpages as follow:
nameof
Name
if(tabControl.SelectedTab.Name == nameof(tabSettings)) { // Do something }
Less messy :)