Is there a keyword to refer to the current class type similar to how this refers to the current instance?
My intention is to avoid having to type the full class name when refering to static members or Enums but I want to prefex it with something like "this" for readability like I do for instance members. The reason being some of the class names are pretty huge and cause excessive wrapping.
I don't think there's a keyword, but maybe as good:
this.GetType();
GetType is one of the few methods implemented by System.Object.
If you include the namespace with using, you won't indeed to enter the full path.
You can alias the class names with using, for instance:
using ClassA = Really.Deep.Class.In.Namepsace.For.SomePurpose.ClassA;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With