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

C#

 
QuestionUnauthorizedAccessException.. Pin
mahi2435-May-08 14:48
mahi2435-May-08 14:48 
AnswerRe: UnauthorizedAccessException.. Pin
Christian Graus5-May-08 15:07
protectorChristian Graus5-May-08 15:07 
GeneralRe: UnauthorizedAccessException.. Pin
mahi2435-May-08 16:55
mahi2435-May-08 16:55 
QuestionCompiling out debugging statements - any easy way? Pin
K.L.K5-May-08 14:35
K.L.K5-May-08 14:35 
AnswerRe: Compiling out debugging statements - any easy way? Pin
Christian Graus5-May-08 15:06
protectorChristian Graus5-May-08 15:06 
AnswerRe: Compiling out debugging statements - any easy way? Pin
Roger Alsing5-May-08 18:51
Roger Alsing5-May-08 18:51 
Questionclass layout Pin
Mike Bentzen5-May-08 13:54
Mike Bentzen5-May-08 13:54 
AnswerRe: class layout Pin
carbon_golem6-May-08 3:01
carbon_golem6-May-08 3:01 
Recommendations:
1) Don't use "class" for a class name... really don't. use "Course" or something appropriate. Never use keywords as class names or in parts of class names.

2) If it has to do with the class directly, then put it into that class. i.e. I'd put public static GetStudent() into the Student class.

3) Remember the "has-a" and "is-a" relationship. Curriculum has Courses. Courses have Students. I don't think you have a problem that requires inheritance here, so don't worry about the "is-a" relationship.

4) When you have problems getting started, it helps greatly to do the UML, even if it's sloppy who cares as long as you get a better understanding of the problem. Use a pencil and paper, don't worry about visio or other fancy tools. Pencils are twice as fast as visio - easy.

5) I presume that this is a student assignment? I'll give you a hint here, what you have is a nested problem, if you solve the Course/Students relationship, then you solved the Curriculum/Courses relationship.

Curriculum
-Courses
+Add(Course)
+Remove(Course)
+this[index]

Course
-Students
+Add(Student)
+Remove(Student)
+this[index]
+GetCourse(fromDB)

Student
-StudentInfo() //Info that I'm not going to go through.
+GetStudent(fromDB)

Scott P

“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra

QuestionWhat does the ?? operator do in C# ? Pin
Link8885-May-08 13:34
Link8885-May-08 13:34 
AnswerRe: What does the ?? operator do in C# ? Pin
Jimmanuel5-May-08 13:58
Jimmanuel5-May-08 13:58 
GeneralRe: What does the ?? operator do in C# ? Pin
MarkB7775-May-08 19:06
MarkB7775-May-08 19:06 
QuestionEvent in a Thread Pin
QzRz5-May-08 10:49
QzRz5-May-08 10:49 
AnswerRe: Event in a Thread Pin
Jimmanuel5-May-08 11:17
Jimmanuel5-May-08 11:17 
AnswerRe: Event in a Thread Pin
K.L.K5-May-08 14:26
K.L.K5-May-08 14:26 
QuestionDataGridView null row Pin
tjschilling5-May-08 10:12
tjschilling5-May-08 10:12 
AnswerRe: DataGridView null row Pin
Ennis Ray Lynch, Jr.5-May-08 10:32
Ennis Ray Lynch, Jr.5-May-08 10:32 
GeneralRe: DataGridView null row Pin
tjschilling5-May-08 11:24
tjschilling5-May-08 11:24 
QuestionHow to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
ioanap_855-May-08 8:59
ioanap_855-May-08 8:59 
AnswerRe: How to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
SomeGuyThatIsMe5-May-08 9:34
SomeGuyThatIsMe5-May-08 9:34 
AnswerRe: How to refresh a comboBox that is bind to a table from a SqlDataBase? Pin
Dave Kreskowiak5-May-08 9:34
mveDave Kreskowiak5-May-08 9:34 
QuestionUse a maked textbox to limit entry to some char Pin
baranils5-May-08 8:56
baranils5-May-08 8:56 
AnswerRe: Use a maked textbox to limit entry to some char Pin
#realJSOP5-May-08 9:51
mve#realJSOP5-May-08 9:51 
GeneralRe: Use a maked textbox to limit entry to some char Pin
baranils5-May-08 10:07
baranils5-May-08 10:07 
GeneralRe: Use a maked textbox to limit entry to some char Pin
#realJSOP5-May-08 11:03
mve#realJSOP5-May-08 11:03 
GeneralRe: Use a maked textbox to limit entry to some char Pin
baranils5-May-08 19:14
baranils5-May-08 19:14 

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.