Nameof expression is amazing Say NO to magic strings
codingblast.com
codingblast.com
#include <boost/preprocessor/stringize.hpp>
#include <stdio.h>
int main() {
puts(BOOST_PP_STRINGIZE(3)); // will print "3\n"
}
except that it can take a qualified name (like person.address.ZipCode) and return just the last component (this is documented by Microsoft as resulting in the string "ZipCode") https://docs.microsoft.com/en-us/dotnet/csharp/language-refe... https://stackoverflow.com/questions/31695900/what-is-the-pur...