So, I'd like to get the name of an enumeration or class without the full namespace appended on to the front of it... For example:
enum MyEnum {
// enum values here
}
// somewhere else in the code
string testString = ???? // ???? returns "MyEnum"
typeof(MyEnum) mostly works, however the namespace of the enumeration is appended to the front.
Any help would be appreciated... thanks!