How about a keyword for qualifying static members?

I like to always qualify all instance fields with the this keyword.

this.someInstanceField;

this.GetType();

I would like to do the same for static fields, but there’s no keyword for that.

I’ve been thinking about this for a while and I think I found a solution: the static keyword.

typeof(); // no need for the static keyword

static.someStaticField;

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>