Click here to Skip to main content
15,914,397 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net 2.0 MailTo Tag Pin
GDesai204-Aug-08 6:13
GDesai204-Aug-08 6:13 
QuestionButterfly Flight Pin
DFlat4Now30-Jul-08 10:08
DFlat4Now30-Jul-08 10:08 
AnswerRe: Butterfly Flight Pin
Thomas Stockwell30-Jul-08 10:19
professionalThomas Stockwell30-Jul-08 10:19 
AnswerRe: Butterfly Flight Pin
jedliu204630-Jul-08 16:01
jedliu204630-Jul-08 16:01 
Questionstoring data Pin
damianrda30-Jul-08 7:40
damianrda30-Jul-08 7:40 
AnswerRe: storing data Pin
TheFM23430-Jul-08 8:03
TheFM23430-Jul-08 8:03 
AnswerRe: storing data Pin
led mike30-Jul-08 8:05
led mike30-Jul-08 8:05 
AnswerRe: storing data Pin
damianrda30-Jul-08 10:00
damianrda30-Jul-08 10:00 
GeneralRe: storing data [modified] Pin
Mark Salsbery30-Jul-08 11:30
Mark Salsbery30-Jul-08 11:30 
Questionown Printer service on c#.net Pin
balu1234530-Jul-08 7:30
balu1234530-Jul-08 7:30 
AnswerRe: own Printer service on c#.net Pin
vikas amin30-Jul-08 10:50
vikas amin30-Jul-08 10:50 
GeneralRe: own Printer service on c#.net Pin
vikas amin30-Jul-08 10:52
vikas amin30-Jul-08 10:52 
GeneralRe: own Printer service on c#.net Pin
balu1234530-Jul-08 23:31
balu1234530-Jul-08 23:31 
GeneralRe: own Printer service on c#.net Pin
vikas amin1-Aug-08 5:37
vikas amin1-Aug-08 5:37 
GeneralRe: own Printer service on c#.net Pin
vikas amin1-Aug-08 6:15
vikas amin1-Aug-08 6:15 
GeneralRe: own Printer service on c#.net Pin
vikas amin19-Aug-08 5:41
vikas amin19-Aug-08 5:41 
QuestionArrayList ....Where is problem? Pin
zeeShan anSari30-Jul-08 6:30
zeeShan anSari30-Jul-08 6:30 
AnswerRe: ArrayList ....Where is problem? Pin
Wendelius30-Jul-08 6:44
mentorWendelius30-Jul-08 6:44 
GeneralRe: ArrayList ....Where is problem? Pin
zeeShan anSari30-Jul-08 6:52
zeeShan anSari30-Jul-08 6:52 
QuestionRe: ArrayList ....Where is problem? Pin
Wendelius30-Jul-08 6:54
mentorWendelius30-Jul-08 6:54 
AnswerRe: ArrayList ....Where is problem? Pin
zeeShan anSari30-Jul-08 7:09
zeeShan anSari30-Jul-08 7:09 
GeneralRe: ArrayList ....Where is problem? Pin
Wendelius30-Jul-08 7:22
mentorWendelius30-Jul-08 7:22 
Yes, the problem is in Dept class. Don't use static keyword on the fields containing the data since there is only one copy of the data.

Also it would make sense to protect the fields since you have public properties for setting and getting the field value.
class Dept { 
      private static string Deptno;
      private static string Dname;
      private static string Loc; 
      public string DNAME { 
         get { return Dname; } 
         set { Dname = value; } 
      } 
      public string DEPTNO { 
         get { return Deptno; } 
         set { Deptno = value; } 
      } 
      public string LOC { 
         get { return Loc; } 
         set { Loc = value; } 
      } 
   }

Hope this helps,

Mika
GeneralRe: ArrayList ....Where is problem? Pin
Alaric_30-Jul-08 7:31
professionalAlaric_30-Jul-08 7:31 
GeneralRe: ArrayList ....Where is problem? Pin
zeeShan anSari30-Jul-08 7:47
zeeShan anSari30-Jul-08 7:47 
GeneralRe: ArrayList ....Where is problem? Pin
Wendelius30-Jul-08 7:58
mentorWendelius30-Jul-08 7:58 

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.