✅ Get instance name inside of class
So i have class like this:
and i want to create
however i can't find o way to get the name of the current instance inside of the class, i thought about
is there any way how to get this working without passing the name of the flag from outside?
and i want to create
ToString that will return -[nameOfTheCliFlag] [valueOfTheFlag] like thishowever i can't find o way to get the name of the current instance inside of the class, i thought about
nameof(this), but that doesn't workis there any way how to get this working without passing the name of the flag from outside?