Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8949597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:15:20+00:00 2026-06-15T13:15:20+00:00

i wanted to know as i start to make some dramatic move from using

  • 0

i wanted to know as i start to make some dramatic move from using regular helpers to more and more extension methods so they start to pile up ,

say my top main namespace is as follows :

the main namespace name is myname + last digit of year and current month

thats how i keep it organized as a helper namespace

namespace "myname212" 
{
    namespace DbRelated
    {
        some clasess & methods 
    }

    namespace styling
    {
        same as usual ..
    }

    // .... some more categories and...then

    //the extentions namespace

    namespace CustomExtentions
    {
        // simplest ext class and its first method 
        public static class ToNumber
        {
            public static int Toint(this Textbox TbxToConvrt)
            {
                return Convert.ToInt32(TbxToConvrt.Text);
            }
            //some more of same subject 
        }
    }
}

but what if i have a more general catefory that has it own sub category logocally

namespace Extentions
{
    public static class MainCategory
    {
         public static class SubCat1 
         {
             public static some_method();
         }
         public static class SubCat2 
         {
             public static some_method();
         }
    }  
}

the a hierarchical stracture above will not work .

so is it true that if i’d like to build more categories i could only do it via

nested namespaces instead of nested classes ?

is this what you do ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:15:21+00:00Added an answer on June 15, 2026 at 1:15 pm

    You can nest namespaces instead:

    namespace My.Nested.Namespace.So.Far
    {
        public static class BlaExtensions
        {
        }
    }
    

    or even:

    namespace My.Nested.Namespace
    {
        public static class FooExtensions
        {
        }
    
        namespace So.Far
        {
            public static class BlaExtensions
            {
            }
        }
    }
    

    should work too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make an mmorpg game and i wanted to know some things
I just wanted to know if there is a way to start recording from
Wanted to know if there was a way one could query shelveset details from
I wanted to make a linked list class ListList that inherits from a class
DO YOU KNOW SOME MORE BEST PRACTICES FOR CANVAS?? Please add to this thread
I know some PHP and now I want to combine it using ajax/jquery. Just
I wanted know how the kernel is providing memory for simple C program .
Wanted to know if someone had a suggestion on code or maybe there's a
I wanted to know about Data Type implementation in PHP so I need a
I wanted to know that if I am doing correctly, regarding retain and release

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.