Click here to Skip to main content
15,889,861 members
Home / Discussions / C#
   

C#

 
QuestionByte array + hex Pin
ita_cas28-Jan-06 8:25
ita_cas28-Jan-06 8:25 
QuestionUserControl Tutorial Pin
MarkMokris28-Jan-06 6:07
MarkMokris28-Jan-06 6:07 
AnswerRe: UserControl Tutorial Pin
Ravi Bhavnani28-Jan-06 16:54
professionalRavi Bhavnani28-Jan-06 16:54 
QuestionHow can I check if a mail exists or not? Pin
m.rastgar28-Jan-06 5:49
m.rastgar28-Jan-06 5:49 
AnswerRe: How can I check if a mail exists or not? Pin
Guffa28-Jan-06 12:02
Guffa28-Jan-06 12:02 
AnswerRe: How can I check if a mail exists or not? Pin
tarasn29-Jan-06 21:09
tarasn29-Jan-06 21:09 
AnswerRe: How can I check if a mail exists or not? Pin
Ista30-Jan-06 2:47
Ista30-Jan-06 2:47 
QuestionDefining nested namespace Pin
Ravi Bhavnani28-Jan-06 5:12
professionalRavi Bhavnani28-Jan-06 5:12 
I'm designing a class library Foo that will contain several classes (Bar, Derf, etc.). Foo will be released as the single assembly Foo.dll and will exist in the namespace MyCompany. IOW, clients of the Foo library will write code like this:

using MyCompany.Foo;
...
Bar bar = new Bar();
...
What's the recommended method for laying out the Foo solution?
  1. Bar.cs resides in the solution's top level folder and contains:
    namespace MyCompany {
      namespace Foo {
        public class Bar {
          ...
        }
      }
    }
    
  2. Bar.cs resides in the in the solution's top level folder and contains:
    namespace MyCompany.Foo {
      public class Bar {
      ...
      }
    }
    
  3. Bar.cs resides in the folder /MyCompany/Foo/ within the solution (a la Java) and contains the content specified in either (1) or (2). I know .NET doesn't infer namespace definition and membership from directory layout, but is this the recommended method for organizing source code?

  4. Something else?
Thanks!

/ravi

My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com

AnswerRe: Defining nested namespace Pin
Guffa28-Jan-06 5:36
Guffa28-Jan-06 5:36 
GeneralRe: Defining nested namespace Pin
Ravi Bhavnani28-Jan-06 5:58
professionalRavi Bhavnani28-Jan-06 5:58 
Questionnewbie: do you ever define a class within a class ( Class A { Class B {} })? Pin
LuluSailor28-Jan-06 5:11
LuluSailor28-Jan-06 5:11 
AnswerRe: newbie: do you ever define a class within a class ( Class A { Class B {} })? Pin
Colin Angus Mackay28-Jan-06 5:48
Colin Angus Mackay28-Jan-06 5:48 
GeneralRe: newbie: do you ever define a class within a class ( Class A { Class B {} })? Pin
LuluSailor28-Jan-06 6:21
LuluSailor28-Jan-06 6:21 
AnswerRe: newbie: do you ever define a class within a class ( Class A { Class B {} })? Pin
Curtis Schlak.28-Jan-06 7:38
Curtis Schlak.28-Jan-06 7:38 
AnswerRe: newbie: do you ever define a class within a class ( Class A { Class B {} })? Pin
Shann28-Jan-06 10:23
Shann28-Jan-06 10:23 
QuestionClass using library, when changes are made still uses old library Pin
kourvoisier28-Jan-06 4:01
kourvoisier28-Jan-06 4:01 
AnswerRe: Class using library, when changes are made still uses old library Pin
Ravi Bhavnani28-Jan-06 4:54
professionalRavi Bhavnani28-Jan-06 4:54 
GeneralRe: Class using library, when changes are made still uses old library Pin
kourvoisier28-Jan-06 5:00
kourvoisier28-Jan-06 5:00 
GeneralRe: Class using library, when changes are made still uses old library Pin
Ravi Bhavnani28-Jan-06 5:04
professionalRavi Bhavnani28-Jan-06 5:04 
AnswerRe: Class using library, when changes are made still uses old library Pin
S. Senthil Kumar28-Jan-06 9:02
S. Senthil Kumar28-Jan-06 9:02 
GeneralRe: Class using library, when changes are made still uses old library Pin
kourvoisier28-Jan-06 11:30
kourvoisier28-Jan-06 11:30 
QuestionClasses for hard disk Pin
sammysoft28-Jan-06 4:00
sammysoft28-Jan-06 4:00 
AnswerRe: Classes for hard disk Pin
Ravi Bhavnani28-Jan-06 5:13
professionalRavi Bhavnani28-Jan-06 5:13 
AnswerRe: Classes for hard disk Pin
SoTTo28-Jan-06 5:23
SoTTo28-Jan-06 5:23 
Questionapp+modem Pin
Kola Sokol28-Jan-06 1:57
Kola Sokol28-Jan-06 1:57 

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.