If I have a class called MyProgram, is there a way of retrieving "MyProgram" as a string?
MyProgram
Try this:
this.GetType().Name
548k questions
547k answers
4 comments
86.3k users