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

C#

 
GeneralRe: Problems when going from framework 1.1 to 2.0 beta Pin
Talal Sultan3-Mar-05 11:30
Talal Sultan3-Mar-05 11:30 
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 
in C++ i can pass a function a const reference to an object. i find this is normally a good idea, since it assures me that the function will not make any changes to the objects state.

is there an equivalent concept in C#? if i understand C# correctly all instances of objects are references and initial experiments show they are passed as modifiable references.

i am trying to create a tree of objects (representing the sub directories on a CD-ROM), so that i can say to each child "this is your parent", passing a constant reference to its parent in its constructor. a child cannot alter its parent, so i want to enforce this concept in the code.

i have found a C# article on modifier keywords which led me to discover that i can have a read only object. but putting readonly before the parameter type does not compile Frown | :(

if there is no such concept, how do people express the concept "remember this object, but you cannot modify it?"

zen is the art of being at one with the two'ness
AnswerRe: is there a concept of const function parameters? Pin
S. Senthil Kumar3-Mar-05 7:17
S. Senthil Kumar3-Mar-05 7:17 
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 

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.