Sep 14, 2012, 9:13 PM
[CLOSED] ExtNet vs X - ReSharper warning of access to a static member of a type via a derived type
I keep forgetting to ask about this:
Throughout your examples you use X instead of ExtNet (e.g. X.IsAjaxRequest() etc), which is nice.
At work we use ReSharper. One of the things it warns about is the use of X to access static members that come from its parent class. This is the page it gives as the reason it considers this a warning:
http://confluence.jetbrains.net/disp...a+derived+type
Although in ReSharper it is easy to turn this warning off, as part of coding conventions/standards for our company we have opted to keep it on.
I know you can also individually ignore particular things ReSharper suggests, but on UI code that would end up with ReSharper ignore comments littered throughout the code making it hard to read (thus defeating one of the purposes of X I suppose).
I know this is not really your problem; it works. But, I was just looking at the Ext.NET code for the X class. I was wondering - do you need both classes? Couldn't ExtNET just become X? I may have missed something.
Anyway, at the moment low priority for me; just curious!
Thanks!
Throughout your examples you use X instead of ExtNet (e.g. X.IsAjaxRequest() etc), which is nice.
At work we use ReSharper. One of the things it warns about is the use of X to access static members that come from its parent class. This is the page it gives as the reason it considers this a warning:
http://confluence.jetbrains.net/disp...a+derived+type
Although in ReSharper it is easy to turn this warning off, as part of coding conventions/standards for our company we have opted to keep it on.
I know you can also individually ignore particular things ReSharper suggests, but on UI code that would end up with ReSharper ignore comments littered throughout the code making it hard to read (thus defeating one of the purposes of X I suppose).
I know this is not really your problem; it works. But, I was just looking at the Ext.NET code for the X class. I was wondering - do you need both classes? Couldn't ExtNET just become X? I may have missed something.
Anyway, at the moment low priority for me; just curious!
Thanks!
Last edited by Daniil; Oct 02, 2012 at 6:38 PM.
Reason: [CLOSED]