Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
QuestionArrays and the interfaces they implement. Pin
CaptainSeeSharp7-Nov-09 13:29
CaptainSeeSharp7-Nov-09 13:29 
AnswerRe: Arrays and the interfaces they implement. Pin
Luc Pattyn7-Nov-09 13:46
sitebuilderLuc Pattyn7-Nov-09 13:46 
AnswerRe: Arrays and the interfaces they implement. Pin
Christian Graus7-Nov-09 14:23
protectorChristian Graus7-Nov-09 14:23 
AnswerRe: Arrays and the interfaces they implement. Pin
Dave Kreskowiak7-Nov-09 15:08
mveDave Kreskowiak7-Nov-09 15:08 
GeneralRe: Arrays and the interfaces they implement. Pin
CaptainSeeSharp7-Nov-09 16:46
CaptainSeeSharp7-Nov-09 16:46 
GeneralRe: Arrays and the interfaces they implement. Pin
Dave Kreskowiak7-Nov-09 19:22
mveDave Kreskowiak7-Nov-09 19:22 
GeneralRe: Arrays and the interfaces they implement. Pin
Luc Pattyn8-Nov-09 1:23
sitebuilderLuc Pattyn8-Nov-09 1:23 
QuestionCreating a method hierarchy within a class Pin
MafiaMoe7-Nov-09 9:50
MafiaMoe7-Nov-09 9:50 
I have been searching all over for an answer, but I have fallen back to asking the programming geniuses that frequent this site.

I am looking into a way to call different methods within a class. The problems are, in the class there are lots of methods and many of the methods are similar in function. So I am looking for a way to put the methods in a hierarchy within the class, but namespace can't be called within a class.

Hopeing for the class to resemble something like:
namespace IEWindow
{
    public class Main
    {
        public void Method()
        {
        }

        public ... NavigationBar
        {
            public void Method()
            {
            }

            public ... Forward
            {
                public bool Method()
                {
                }
            }
            public ... Back
            {
                //methods
            }
            public ... AddressBar
            {
                //methods
            }
        }
    }
}

*Note, in reality this will contain as many as a few hundred methods;

and to be used like
IEWindow.Main IEWin = new IEWindow.Main();
IEWin.Method();
IEWin.NavigationBar.Method();
bool g = IEWin.NavigationBar.Forward.Method()


Any help, even a statement like 'This is impossible, but thanks for humoring me', would be greatly appreciated.
AnswerRe: Creating a method hierarchy within a class Pin
PIEBALDconsult7-Nov-09 10:10
mvePIEBALDconsult7-Nov-09 10:10 
GeneralRe: Creating a method hierarchy within a class Pin
MafiaMoe7-Nov-09 10:45
MafiaMoe7-Nov-09 10:45 
GeneralRe: Creating a method hierarchy within a class Pin
PIEBALDconsult7-Nov-09 11:14
mvePIEBALDconsult7-Nov-09 11:14 
GeneralRe: Creating a method hierarchy within a class Pin
Not Active7-Nov-09 11:42
mentorNot Active7-Nov-09 11:42 
AnswerRe: Creating a method hierarchy within a class Pin
Not Active7-Nov-09 10:38
mentorNot Active7-Nov-09 10:38 
GeneralRe: Creating a method hierarchy within a class Pin
MafiaMoe7-Nov-09 10:50
MafiaMoe7-Nov-09 10:50 
GeneralRe: Creating a method hierarchy within a class Pin
Dave Kreskowiak7-Nov-09 11:43
mveDave Kreskowiak7-Nov-09 11:43 
AnswerRe: Creating a method hierarchy within a class Pin
Luc Pattyn7-Nov-09 11:08
sitebuilderLuc Pattyn7-Nov-09 11:08 
QuestionComplex IF Statment Pin
Saksida Bojan7-Nov-09 9:33
Saksida Bojan7-Nov-09 9:33 
AnswerRe: Complex IF Statment Pin
Luc Pattyn7-Nov-09 9:36
sitebuilderLuc Pattyn7-Nov-09 9:36 
GeneralRe: Complex IF Statment Pin
Christian Graus7-Nov-09 9:37
protectorChristian Graus7-Nov-09 9:37 
GeneralRe: Complex IF Statment Pin
Luc Pattyn7-Nov-09 9:40
sitebuilderLuc Pattyn7-Nov-09 9:40 
GeneralRe: Complex IF Statment Pin
Saksida Bojan7-Nov-09 9:48
Saksida Bojan7-Nov-09 9:48 
GeneralRe: Complex IF Statment Pin
Luc Pattyn7-Nov-09 10:00
sitebuilderLuc Pattyn7-Nov-09 10:00 
GeneralRe: Complex IF Statment Pin
PIEBALDconsult7-Nov-09 10:16
mvePIEBALDconsult7-Nov-09 10:16 
GeneralRe: Complex IF Statment Pin
Christian Graus7-Nov-09 10:18
protectorChristian Graus7-Nov-09 10:18 
AnswerRe: Complex IF Statment Pin
Christian Graus7-Nov-09 9:38
protectorChristian Graus7-Nov-09 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.