Click here to Skip to main content
15,904,823 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert DateTine to a Number? Pin
Ravi Bhavnani18-Mar-06 18:05
professionalRavi Bhavnani18-Mar-06 18:05 
AnswerTHANKS!!! Pin
redfish3418-Mar-06 23:50
redfish3418-Mar-06 23:50 
QuestionDistributing C# Applications? Pin
Matt U.18-Mar-06 8:56
Matt U.18-Mar-06 8:56 
AnswerRe: Distributing C# Applications? Pin
Ed.Poore18-Mar-06 11:00
Ed.Poore18-Mar-06 11:00 
AnswerRe: Distributing C# Applications? Pin
Thomas Stockwell18-Mar-06 13:39
professionalThomas Stockwell18-Mar-06 13:39 
Questionhow to the Cursor Location using C# 2.0 *** Urgent Pin
VenkataRamana.Gali18-Mar-06 8:48
VenkataRamana.Gali18-Mar-06 8:48 
AnswerRe: how to the Cursor Location using C# 2.0 *** Urgent Pin
Thomas Stockwell18-Mar-06 13:41
professionalThomas Stockwell18-Mar-06 13:41 
QuestionNewbie: return const object? Pin
Dominik Reichl18-Mar-06 8:00
Dominik Reichl18-Mar-06 8:00 
Hello!

Assume this: I got two classes, namely CContainer and CItem. The container class declares a list of items like this:

private List<CItem> = new List<CItem>();

It fills this list somehow and offers a function like

public CItem GetItem(int nIndex);

This function returns the item at nIndex. The problem now is: how do I prevent the caller from modifying the returned CItem?

In C++ we just put the const keyword into the declaration to achieve this. Any way to do it in C#? Is there a corresponding keyword?

Thanks in advance and best regards
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)


-- modified at 14:01 Saturday 18th March, 2006
AnswerRe: Newbie: return const object? Pin
CWIZO18-Mar-06 8:25
CWIZO18-Mar-06 8:25 
AnswerRe: Newbie: return const object? Pin
Richard Andrew x6418-Mar-06 12:34
professionalRichard Andrew x6418-Mar-06 12:34 
AnswerRe: Newbie: return const object? Pin
S. Senthil Kumar18-Mar-06 20:05
S. Senthil Kumar18-Mar-06 20:05 
QuestionIs there any way ... ? Pin
mostafa_h18-Mar-06 7:54
mostafa_h18-Mar-06 7:54 
AnswerRe: Is there any way ... ? Pin
Ed.Poore18-Mar-06 12:51
Ed.Poore18-Mar-06 12:51 
QuestionThe mysterious Desktop redraw Pin
Pascal Ganaye18-Mar-06 7:46
Pascal Ganaye18-Mar-06 7:46 
GeneralRe: The mysterious Desktop redraw Pin
Guffa18-Mar-06 8:34
Guffa18-Mar-06 8:34 
AnswerRe: The mysterious Desktop redraw Pin
Robert Rohde18-Mar-06 9:04
Robert Rohde18-Mar-06 9:04 
GeneralRe: The mysterious Desktop redraw Pin
Pascal Ganaye20-Mar-06 7:29
Pascal Ganaye20-Mar-06 7:29 
QuestionWorking with Outlook Pin
Yevgeny Efter18-Mar-06 7:10
Yevgeny Efter18-Mar-06 7:10 
AnswerRe: Working with Outlook Pin
Pascal Ganaye18-Mar-06 7:30
Pascal Ganaye18-Mar-06 7:30 
GeneralRe: Working with Outlook Pin
Yevgeny Efter18-Mar-06 17:49
Yevgeny Efter18-Mar-06 17:49 
QuestionRAS Connection Pin
plz.ze18-Mar-06 5:42
plz.ze18-Mar-06 5:42 
QuestionSorry all Pin
CoolASL18-Mar-06 5:40
CoolASL18-Mar-06 5:40 
GeneralRe: Sorry all Pin
Guffa18-Mar-06 8:28
Guffa18-Mar-06 8:28 
GeneralRe: Sorry all Pin
CoolASL19-Mar-06 0:29
CoolASL19-Mar-06 0:29 
QuestionCopy/paste of generic collection Pin
[Gone]18-Mar-06 4:54
[Gone]18-Mar-06 4:54 

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.