Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to put a timer counter in my software that counts starting from the day installed? Pin
CoderForEver5-Mar-10 5:58
CoderForEver5-Mar-10 5:58 
QuestionWhere in Toronto Ont Canada can I walk in and buy Visual Studio 2008 ? Pin
KenBowd4-Mar-10 13:17
KenBowd4-Mar-10 13:17 
AnswerRe: Where in Toronto Ont Canada can I walk in and buy Visual Studio 2008 ? Pin
AspDotNetDev4-Mar-10 14:07
protectorAspDotNetDev4-Mar-10 14:07 
GeneralRe: Where in Toronto Ont Canada can I walk in and buy Visual Studio 2008 ? Pin
PIEBALDconsult5-Mar-10 4:31
mvePIEBALDconsult5-Mar-10 4:31 
AnswerRe: Where in Toronto Ont Canada can I walk in and buy Visual Studio 2008 ? Pin
Ravi Bhavnani4-Mar-10 15:45
professionalRavi Bhavnani4-Mar-10 15:45 
AnswerRe: Where in Toronto Ont Canada can I walk in and buy Visual Studio 2008 ? Pin
PIEBALDconsult4-Mar-10 17:42
mvePIEBALDconsult4-Mar-10 17:42 
Questionhow to read and write to xml using dataset [modified] Pin
xiaowenjie4-Mar-10 12:51
xiaowenjie4-Mar-10 12:51 
AnswerRe: how to read and write to xml using dataset Pin
snorkie4-Mar-10 16:37
professionalsnorkie4-Mar-10 16:37 
GeneralRe: how to read and write to xml using dataset Pin
xiaowenjie4-Mar-10 21:47
xiaowenjie4-Mar-10 21:47 
AnswerRe: how to read and write to xml using dataset Pin
shawnzhang4-Mar-10 19:26
shawnzhang4-Mar-10 19:26 
QuestionRemoving All "List<*>" Items Though It Shouldn't ... ?? [SOLVED] Pin
Matt U.4-Mar-10 12:36
Matt U.4-Mar-10 12:36 
AnswerRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Luc Pattyn4-Mar-10 14:54
sitebuilderLuc Pattyn4-Mar-10 14:54 
GeneralRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Matt U.4-Mar-10 15:19
Matt U.4-Mar-10 15:19 
GeneralRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Luc Pattyn4-Mar-10 15:27
sitebuilderLuc Pattyn4-Mar-10 15:27 
GeneralRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Matt U.4-Mar-10 15:56
Matt U.4-Mar-10 15:56 
GeneralRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Luc Pattyn4-Mar-10 16:06
sitebuilderLuc Pattyn4-Mar-10 16:06 
GeneralRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Matt U.5-Mar-10 11:37
Matt U.5-Mar-10 11:37 
GeneralRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Luc Pattyn5-Mar-10 12:00
sitebuilderLuc Pattyn5-Mar-10 12:00 
Hi,

1.
string a="31232435342452";
string b=a;
string c=b;


looks like it has three strings; in reality only one piece of text is stored somewhere, and its memory address is stored inside the objects a, b, and c. So the memory penalty for copying objects is very limited.

2.
Passing objects around seems to be a difficult concept for the OO novice.
If there ever is only one list of artists, you might make it a public static member of class Artist, so it could get accessed by everyone from everywhere using Artist.artists
However that is not the best way, as sooner or later you'll want two or more lists of artists.

One normally does create the list once, then pass it on to other interested objects, either through a constructor parameter, a method parameter, or by setting a property to that effect.

3.
Dictionaries are fine; their one limitation is all key values must be unique and non-null. Which sounds fine for artists with a UniqueID field.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Removing All "List" Items Though It Shouldn't ... ?? Pin
Matt U.5-Mar-10 12:04
Matt U.5-Mar-10 12:04 
QuestionChanging colors of an image Pin
Berlus4-Mar-10 9:34
Berlus4-Mar-10 9:34 
AnswerRe: Changing colors of an image Pin
Anubhava Dimri4-Mar-10 18:14
Anubhava Dimri4-Mar-10 18:14 
QuestionWinsock Library Recommendation? [modified] Pin
Richard Andrew x644-Mar-10 9:13
professionalRichard Andrew x644-Mar-10 9:13 
AnswerRe: Winsock Library Recommendation? Pin
snorkie4-Mar-10 10:22
professionalsnorkie4-Mar-10 10:22 
GeneralRe: Winsock Library Recommendation? Pin
Richard Andrew x644-Mar-10 10:29
professionalRichard Andrew x644-Mar-10 10:29 
AnswerRe: Winsock Library Recommendation? Pin
snorkie4-Mar-10 11:22
professionalsnorkie4-Mar-10 11:22 

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.