Click here to Skip to main content
16,004,854 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Reports - DataBase Login - C# Pin
aranhamarvel10-Apr-07 14:12
aranhamarvel10-Apr-07 14:12 
AnswerRe: Crystal Reports - DataBase Login - C# Pin
phantanagu10-Apr-07 16:31
phantanagu10-Apr-07 16:31 
Questiona web page control application Pin
mosee10-Apr-07 13:15
mosee10-Apr-07 13:15 
AnswerRe: a web page control application Pin
Quinten.Miller10-Apr-07 14:49
Quinten.Miller10-Apr-07 14:49 
QuestionHow to create a mail merge application using Asp.NEt & C# Pin
rahulnair10-Apr-07 12:00
rahulnair10-Apr-07 12:00 
AnswerRe: How to create a mail merge application using Asp.NEt & C# Pin
Mark Greenwood10-Apr-07 17:45
Mark Greenwood10-Apr-07 17:45 
QuestionWhy Does by-value-passing object change? Pin
Ali Beirami10-Apr-07 11:15
Ali Beirami10-Apr-07 11:15 
AnswerRe: Why Does by-value-passing object change? Pin
Colin Angus Mackay10-Apr-07 11:35
Colin Angus Mackay10-Apr-07 11:35 
Because an Order is a class, and therefore a reference object. You pass the reference to the object, so there may be many variables all referencing the same physical object. So call a method on one reference that makes a change and everything that has the reference will see the change in the object.

This is different to a value object. In this case a copy of the object is passed, so if a value object is passed into a method then the code inside the method sees a copy of the object, rather than the version that was passed in.


Upcoming events:
* Edinburgh: Web Security Conference Day for Windows Developers (12th April)
* Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

GeneralRe: Why Does by-value-passing object change? Pin
Ali Beirami10-Apr-07 11:43
Ali Beirami10-Apr-07 11:43 
GeneralRe: Why Does by-value-passing object change? Pin
Christian Graus10-Apr-07 11:49
protectorChristian Graus10-Apr-07 11:49 
GeneralRe: Why Does by-value-passing object change? Pin
Ali Beirami10-Apr-07 11:59
Ali Beirami10-Apr-07 11:59 
GeneralRe: Why Does by-value-passing object change? Pin
Russell Jones10-Apr-07 21:39
Russell Jones10-Apr-07 21:39 
GeneralRe: Why Does by-value-passing object change? Pin
Russell Jones10-Apr-07 21:41
Russell Jones10-Apr-07 21:41 
QuestionHow to Export Gridview to Exel sheet in C#.net Pin
sundeeppatil10-Apr-07 11:13
sundeeppatil10-Apr-07 11:13 
QuestionHow to discard invalid (ASCII 0-32) user input in editbox? [modified] Pin
SandeepN10-Apr-07 9:09
SandeepN10-Apr-07 9:09 
AnswerRe: How to discard invalid (ASCII 0-32) user input in editbox? Pin
kubben10-Apr-07 12:15
kubben10-Apr-07 12:15 
GeneralRe: How to discard invalid (ASCII 0-32) user input in editbox? [modified] Pin
SandeepN10-Apr-07 12:39
SandeepN10-Apr-07 12:39 
QuestionXslCompiledTransform.Transform() to a string Pin
eggie510-Apr-07 8:56
eggie510-Apr-07 8:56 
AnswerRe: XslCompiledTransform.Transform() to a string Pin
eggie510-Apr-07 9:24
eggie510-Apr-07 9:24 
QuestionStoring references in a class Pin
Ephoy10-Apr-07 8:39
Ephoy10-Apr-07 8:39 
AnswerRe: Storing references in a class Pin
Martin#10-Apr-07 9:11
Martin#10-Apr-07 9:11 
GeneralRe: Storing references in a class Pin
Ephoy10-Apr-07 10:09
Ephoy10-Apr-07 10:09 
GeneralRe: Storing references in a class [modified] Pin
Martin#11-Apr-07 3:11
Martin#11-Apr-07 3:11 
AnswerRe: Storing references in a class Pin
Scott Dorman10-Apr-07 17:48
professionalScott Dorman10-Apr-07 17:48 
GeneralRe: Storing references in a class Pin
Ephoy11-Apr-07 0:11
Ephoy11-Apr-07 0:11 

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.