Click here to Skip to main content
15,921,716 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralThreading with sqlDataReader Pin
michin127-Oct-03 11:02
michin127-Oct-03 11:02 
Generalclass question Pin
R. Thomas26-Oct-03 1:01
R. Thomas26-Oct-03 1:01 
GeneralRe: class question Pin
J. Dunlap26-Oct-03 8:08
J. Dunlap26-Oct-03 8:08 
GeneralRe: class question Pin
Blake Coverett26-Oct-03 8:40
Blake Coverett26-Oct-03 8:40 
GeneralRe: class question Pin
R. Thomas28-Oct-03 6:18
R. Thomas28-Oct-03 6:18 
GeneralRe: class question Pin
Blake Coverett28-Oct-03 6:44
Blake Coverett28-Oct-03 6:44 
GeneralRe: class question Pin
R. Thomas29-Oct-03 4:37
R. Thomas29-Oct-03 4:37 
GeneralRe: class question Pin
Anonymous5-Nov-03 7:18
Anonymous5-Nov-03 7:18 
Another example:
You have a class which describes a task:
public class task {
public task(string name, DateTime date, int priority) {
//DoSomething
}
}

No someone really often creates those objects with Priority 2 but doesnt want to always pass this in. So we declare another constructor
public task(string name, DateTime date) : base(name, date, 2)
{
}

To quickly add tasks we want another constructor to create tasks with Priotity 2 and 'Today' as the date. So we declare another constructor:
public task(string name) : base(name, DateTime.Now)
{
}

Now you have the choice to call the full constructor with all possible arguments, or you just call one of the other constructors to decrease the writing. Another plus is, that you can change the default priority in one place.

Greetings Robert
General3-way communications Pin
Le centriste24-Oct-03 6:23
Le centriste24-Oct-03 6:23 
GeneralDoubleClick in TreeView Pin
Anonymous24-Oct-03 2:36
Anonymous24-Oct-03 2:36 
GeneralRe: DoubleClick in TreeView Pin
LasVegasGuy24-Oct-03 8:44
LasVegasGuy24-Oct-03 8:44 
GeneralRe: DoubleClick in TreeView Pin
John Arlen24-Oct-03 10:01
John Arlen24-Oct-03 10:01 
GeneralGet Version Number. Pin
Jason Weibel23-Oct-03 10:52
Jason Weibel23-Oct-03 10:52 
GeneralRe: Get Version Number. Pin
John Arlen24-Oct-03 7:45
John Arlen24-Oct-03 7:45 
GeneralRe: Get Version Number. Pin
Jason Weibel24-Oct-03 11:18
Jason Weibel24-Oct-03 11:18 
QuestionAnother Bug in the .net datagrid ??? Pin
livss23-Oct-03 8:00
livss23-Oct-03 8:00 
AnswerRe: Another Bug in the .net datagrid ??? Pin
John Arlen27-Oct-03 10:10
John Arlen27-Oct-03 10:10 
Generalhardware controlling.... Pin
waleed riaz22-Oct-03 2:01
waleed riaz22-Oct-03 2:01 
GeneralRe: hardware controlling.... Pin
Philip Fitzsimons22-Oct-03 8:05
Philip Fitzsimons22-Oct-03 8:05 
GeneralRe: hardware controlling.... Pin
waleed riaz22-Oct-03 20:35
waleed riaz22-Oct-03 20:35 
QuestionHow do I remove a class or anything from the .NET ide? Pin
adonisv21-Oct-03 10:20
adonisv21-Oct-03 10:20 
AnswerRe: How do I remove a class or anything from the .NET ide? Pin
John Arlen27-Oct-03 9:20
John Arlen27-Oct-03 9:20 
GeneralRe: How do I remove a class or anything from the .NET ide? Pin
adonisv28-Oct-03 11:53
adonisv28-Oct-03 11:53 
GeneralDataGrid Pin
kersyanti19-Oct-03 18:46
kersyanti19-Oct-03 18:46 
GeneralDynamically determine server to use Web Service Pin
kissa15-Oct-03 16:25
kissa15-Oct-03 16:25 

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.