If I have a class called MyProgram, is there a way of retrieving "MyProgram" as a string?
MyProgram
Try this:
this.GetType().Name
2.1m questions
2.1m answers
60 comments
57.0k users