If I have a class called MyProgram
, is there a way of retrieving “MyProgram” as a string?
1Best Answer
Try this:
this.GetType().Name