Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. How do you name your extension methods class?

How do you name your extension methods class?

Scheduled Pinned Locked Moved The Lounge
graphicsquestion
8 Posts 7 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jpg 0
    wrote on last edited by
    #1

    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?

    P 0 B P 4 Replies Last reply
    0
    • J jpg 0

      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?

      P Offline
      P Offline
      Pascal 0
      wrote on last edited by
      #2

      I use FrameworkExtension

      1 Reply Last reply
      0
      • J jpg 0

        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?

        0 Offline
        0 Offline
        0x3c0
        wrote on last edited by
        #3

        .jpg wrote:

        GraphicsEx

        That's probably not the best name either :) "graphicsex"

        Between the motion And the act Falls the Shadow

        H J 2 Replies Last reply
        0
        • 0 0x3c0

          .jpg wrote:

          GraphicsEx

          That's probably not the best name either :) "graphicsex"

          Between the motion And the act Falls the Shadow

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          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.”

          0 1 Reply Last reply
          0
          • 0 0x3c0

            .jpg wrote:

            GraphicsEx

            That's probably not the best name either :) "graphicsex"

            Between the motion And the act Falls the Shadow

            J Offline
            J Offline
            John M Drescher
            wrote on last edited by
            #5

            I am sure that is why they hyphenated expertsexchange.com

            John

            1 Reply Last reply
            0
            • H Henry Minute

              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.”

              0 Offline
              0 Offline
              0x3c0
              wrote on last edited by
              #6

              I do have a problem. :-O In my defence, the words were already there. I just noticed it first.

              Between the motion And the act Falls the Shadow

              1 Reply Last reply
              0
              • J jpg 0

                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?

                B Offline
                B Offline
                Brady Kelly
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • J jpg 0

                  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?

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups