Yes. You are maintaining object references, not copies.
Cheers! Dave ----- Original Message ----- From: scaevola637 To: [email protected] Sent: Monday, March 14, 2005 8:20 AM Subject: [AspNetAnyQuestionIsOk] unforeseen problems with dataset caching here is the code: <!--- if (Http.Context.Current.Cache["mydataset"] == null) { // go to sql server and fill dataset code omitted HttpContext.Current.Cache.Insert ("mydataset",mydataset,null,DateTime.MaxValue,ts); } else mydataset = (DataSet) HttpContext.Current.Cache["mydataset"]; //further down do some reassignment on datarow values mydataset.Tables[0].Rows[i][0] = mynewstringvalue; // the trouble is, when I pull the dataset out of the cache, it has the values in row[i][0] that i assigned after caching. Is this normal? I did not think it was supposed to do this. Yahoo! Groups Sponsor ADVERTISEMENT ------------------------------------------------------------------------------ Yahoo! Groups Links a.. To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
