How do you name your extension methods class?
-
I normally append 's' to the class name, for instance, string-related extension methods would be placed under 'Strings', but one day I found that I need to write System.Drawing.Graphics related methods, the name 'Graphicss' clearly doesn't make sense, so I name it 'GraphicsEx' So how do you name your extension method class?
-
I normally append 's' to the class name, for instance, string-related extension methods would be placed under 'Strings', but one day I found that I need to write System.Drawing.Graphics related methods, the name 'Graphicss' clearly doesn't make sense, so I name it 'GraphicsEx' So how do you name your extension method class?
-
I normally append 's' to the class name, for instance, string-related extension methods would be placed under 'Strings', but one day I found that I need to write System.Drawing.Graphics related methods, the name 'Graphicss' clearly doesn't make sense, so I name it 'GraphicsEx' So how do you name your extension method class?
-
.jpg wrote:
GraphicsEx
That's probably not the best name either :) "graphicsex"
Between the motion And the act Falls the Shadow
Dirty, dirty boy!!
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
.jpg wrote:
GraphicsEx
That's probably not the best name either :) "graphicsex"
Between the motion And the act Falls the Shadow
I am sure that is why they hyphenated expertsexchange.com
John
-
Dirty, dirty boy!!
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
I normally append 's' to the class name, for instance, string-related extension methods would be placed under 'Strings', but one day I found that I need to write System.Drawing.Graphics related methods, the name 'Graphicss' clearly doesn't make sense, so I name it 'GraphicsEx' So how do you name your extension method class?
I seldom write extensions for basic types, but for example, if I write extensions for Telerik's RadGrid, I call the class RadGridExtensions, and the same for others, even StringExtensions.
-
I normally append 's' to the class name, for instance, string-related extension methods would be placed under 'Strings', but one day I found that I need to write System.Drawing.Graphics related methods, the name 'Graphicss' clearly doesn't make sense, so I name it 'GraphicsEx' So how do you name your extension method class?
Same as with all my library code LibXxx -- e.g. LibStr, LibSys, etc. Correction: All my Extension Methods are in classes named LibExt, but each is in a different namespace based on the name of the method.
modified on Monday, August 24, 2009 1:25 AM