SyntaxFix
Write A Post
Hire A Developer
Questions
For reference, if you have a type that inherits from another you can also use
this.GetType().BaseType.Name