If I have a class called MyProgram, is there a way of retrieving “MyProgram” as a string?

1Best Answer
11

Try this:

this.GetType().Name

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *