Click here to Skip to main content
15,913,758 members
Home / Discussions / C#
   

C#

 
GeneralRe: public variables Pin
Le centriste24-Feb-06 1:54
Le centriste24-Feb-06 1:54 
AnswerRe: public variables Pin
StyleGuide23-Feb-06 3:33
StyleGuide23-Feb-06 3:33 
QuestionTransparent Label in Compact Framework? Pin
rnvrnv23-Feb-06 3:08
rnvrnv23-Feb-06 3:08 
Questionhow to check if client still connected to server Pin
batmanAgen23-Feb-06 2:57
batmanAgen23-Feb-06 2:57 
AnswerRe: how to check if client still connected to server Pin
Praveen Nayak23-Feb-06 19:19
Praveen Nayak23-Feb-06 19:19 
GeneralRe: how to check if client still connected to server Pin
batmanAgen23-Feb-06 21:01
batmanAgen23-Feb-06 21:01 
QuestionMicrosoft.DirectX.AudioVideoPlayback.Video Pin
kaka2223-Feb-06 2:12
kaka2223-Feb-06 2:12 
QuestionConstructor overloading Pin
spin vector23-Feb-06 1:56
spin vector23-Feb-06 1:56 
How can I overload a constructor elegantly where the body of the multiple cnstr's holds the same code. For instance:

public C( string s, double p )
{
local_s = s;
local_p = p;
}
pubilc C( double p )
{
local_p = p;
}


I'd like something such as:
public C( string S, double p )
{
local_s = s;
C( p );
}

but the compiler complains 'C' denotes a 'class' which is not valid in the given context. Of course I could write a private function call to load 'p':

public C( string s, double p )
{
local_s = s;
save( p );
}
public C( double p )
{
save( p );
}
private save( double p )
{
local_p = p;
}

but this seems inelegant.

Please advise. Thx.

AnswerRe: Constructor overloading Pin
Nicholas Butler23-Feb-06 2:03
sitebuilderNicholas Butler23-Feb-06 2:03 
GeneralRe: Constructor overloading Pin
spin vector23-Feb-06 2:33
spin vector23-Feb-06 2:33 
AnswerRe: Constructor overloading Pin
Guffa23-Feb-06 2:42
Guffa23-Feb-06 2:42 
AnswerRe: Constructor overloading Pin
Nicholas Butler23-Feb-06 2:43
sitebuilderNicholas Butler23-Feb-06 2:43 
Questionthreading problem Pin
Areff23-Feb-06 1:52
Areff23-Feb-06 1:52 
AnswerRe: threading problem Pin
Nicholas Butler23-Feb-06 1:58
sitebuilderNicholas Butler23-Feb-06 1:58 
AnswerRe: threading problem Pin
Le centriste23-Feb-06 3:33
Le centriste23-Feb-06 3:33 
GeneralRe: threading problem Pin
Areff23-Feb-06 4:40
Areff23-Feb-06 4:40 
Questionhow to begining 3d programming with opengl ? Pin
hdv21223-Feb-06 1:33
hdv21223-Feb-06 1:33 
QuestionWindows Start Menu style Pin
Dave McCool23-Feb-06 0:50
Dave McCool23-Feb-06 0:50 
QuestionVideo Application Pin
kaka2223-Feb-06 0:09
kaka2223-Feb-06 0:09 
QuestionOn-Screen-Keyboard manipulating Pin
M-200023-Feb-06 0:08
M-200023-Feb-06 0:08 
QuestionRegarding combobox Pin
A.Grover22-Feb-06 23:54
A.Grover22-Feb-06 23:54 
Question.NET Toolbar Pin
XeoN-Kc22-Feb-06 23:38
XeoN-Kc22-Feb-06 23:38 
QuestionNot able to fetch data using OracleDataAdaptor Pin
nauty22-Feb-06 23:32
nauty22-Feb-06 23:32 
QuestionQODBC data fetching error Pin
Praveen_S22-Feb-06 23:09
Praveen_S22-Feb-06 23:09 
Questionfunction for date format Pin
ptvce22-Feb-06 22:55
ptvce22-Feb-06 22:55 

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.