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

C#

 
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 
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 
Another reason that you may want to define an inner class relies on how you will use B in class A{ class B{} }. If only A uses B and no other class should use B, then a private inner class would work well in that situation.

For example, if you write a class that acts as a binary tree that supports only adding, searching, and removing, then you may never need to expose the class that implements the node in that tree structure. Thus, you could have something like the following incomplete code snippet.
public class Tree
{
  public Tree() { // stuff }

  public object Search( object obj ) { // Searches the Tree.Nodes in the Tree }

  public void Add( object obj ) { // Adds a Tree.Node to the Tree }

  public void Remove( object obj ) { // Removes a Tree.Node from the Tree }

  private class Node
  {
    public Node( object o ) { // stuff }
  }
} 

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
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 
Questionhow to make setup project+databse(sql server) please urgent Pin
sa_keles28-Jan-06 1:14
sa_keles28-Jan-06 1:14 
AnswerRe: how to make setup project+databse(sql server) please urgent Pin
sa_keles29-Jan-06 0:25
sa_keles29-Jan-06 0:25 
QuestionRecording with Sound Recorder Pin
freshonlineMax27-Jan-06 23:28
freshonlineMax27-Jan-06 23:28 
AnswerRe: Recording with Sound Recorder Pin
S. Senthil Kumar28-Jan-06 9:10
S. Senthil Kumar28-Jan-06 9:10 
AnswerRe: Recording with Sound Recorder Pin
freshonlineMax28-Jan-06 23:16
freshonlineMax28-Jan-06 23:16 
GeneralRe: Recording with Sound Recorder Pin
Saravanan_article29-Jan-06 21:30
Saravanan_article29-Jan-06 21:30 

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.