Click here to Skip to main content
15,915,805 members
Home / Discussions / C#
   

C#

 
GeneralDateTime problem Pin
Anonymous3-Mar-05 6:34
Anonymous3-Mar-05 6:34 
GeneralRe: DateTime problem Pin
sreejith ss nair3-Mar-05 9:22
sreejith ss nair3-Mar-05 9:22 
GeneralRe: DateTime problem Pin
Anonymous3-Mar-05 10:30
Anonymous3-Mar-05 10:30 
Questionenybody Know...??? Pin
ABBASI_RA3-Mar-05 3:55
ABBASI_RA3-Mar-05 3:55 
General,.net security related problem Pin
montu33773-Mar-05 3:46
montu33773-Mar-05 3:46 
GeneralRe: ,.net security related problem Pin
Judah Gabriel Himango3-Mar-05 6:39
sponsorJudah Gabriel Himango3-Mar-05 6:39 
Questionis there a concept of const function parameters? Pin
feline_dracoform3-Mar-05 3:33
feline_dracoform3-Mar-05 3:33 
AnswerRe: is there a concept of const function parameters? Pin
S. Senthil Kumar3-Mar-05 7:17
S. Senthil Kumar3-Mar-05 7:17 
There is no language support for const function parameters. For your case though, you can declare the parent field in the child class as readonly. That means that it can only be set in the constructor/field initializer. Like this
<br />
class Child : Node<br />
{<br />
   private readonly Node parent;<br />
<br />
   public Child(Node parent)<br />
   {<br />
      this.parent = parent;<br />
   }<br />
   public void SomeFunc()<br />
   {<br />
      parent = new Node(...); //won't compile<br />
   }<br />
}<br />


Regards
Senthil
My Blog
GeneralDll Import ( C++ Dll) and the result array Pin
Anonymous3-Mar-05 3:03
Anonymous3-Mar-05 3:03 
GeneralGet fusing of two pixels Pin
Anonymous3-Mar-05 2:11
Anonymous3-Mar-05 2:11 
GeneralRe: Get fusing of two pixels Pin
leppie3-Mar-05 9:01
leppie3-Mar-05 9:01 
GeneralRe: Get fusing of two pixels Pin
Sasuko3-Mar-05 11:53
Sasuko3-Mar-05 11:53 
QuestionWhere to store data? Pin
chilberto3-Mar-05 0:40
chilberto3-Mar-05 0:40 
AnswerRe: Where to store data? Pin
S. Senthil Kumar3-Mar-05 7:19
S. Senthil Kumar3-Mar-05 7:19 
GeneralP/Invoke memory leakage Pin
ting6683-Mar-05 0:36
ting6683-Mar-05 0:36 
GeneralRe: P/Invoke memory leakage Pin
mav.northwind3-Mar-05 1:36
mav.northwind3-Mar-05 1:36 
QuestionHow to get an HTML page to windows? Pin
Neerudi3-Mar-05 0:15
Neerudi3-Mar-05 0:15 
AnswerRe: How to get an HTML page to windows? Pin
dwark1063-Mar-05 9:52
dwark1063-Mar-05 9:52 
GeneralLocating and Identifying Attribute classes Pin
Tristan Rhodes2-Mar-05 23:47
Tristan Rhodes2-Mar-05 23:47 
Generalcreating and printing .doc files with templates Pin
V.2-Mar-05 22:31
professionalV.2-Mar-05 22:31 
GeneralRe: creating and printing .doc files with templates Pin
Bahadir Cambel3-Mar-05 13:49
Bahadir Cambel3-Mar-05 13:49 
Questionwhy the Events Handlers dosnt works??? Pin
ABBASI_RA2-Mar-05 22:28
ABBASI_RA2-Mar-05 22:28 
GeneralXML node reading Pin
gmeii2-Mar-05 20:24
gmeii2-Mar-05 20:24 
GeneralRe: XML node reading Pin
Heath Stewart2-Mar-05 21:47
protectorHeath Stewart2-Mar-05 21:47 
GeneralHighlight Text Pin
gmeii2-Mar-05 20:16
gmeii2-Mar-05 20:16 

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.