Click here to Skip to main content
15,890,897 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 9:09
Skippums11-Dec-07 9:09 
QuestionRe: Is it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 9:26
Skippums11-Dec-07 9:26 
GeneralRe: Is it possible to create instance aliases in C#? Pin
Luc Pattyn11-Dec-07 9:48
sitebuilderLuc Pattyn11-Dec-07 9:48 
GeneralFormat code for a decimal number. Pin
dbrenth11-Dec-07 7:37
dbrenth11-Dec-07 7:37 
GeneralRe: Format code for a decimal number. Pin
pmarfleet11-Dec-07 7:54
pmarfleet11-Dec-07 7:54 
QuestionReceiving Connection Error w/ SQL DB File on Remote/Hosting Server Pin
dboy22111-Dec-07 7:17
dboy22111-Dec-07 7:17 
GeneralClasses and references Pin
User 665811-Dec-07 6:42
User 665811-Dec-07 6:42 
GeneralRe: Classes and references Pin
Skippums11-Dec-07 6:59
Skippums11-Dec-07 6:59 
No... Basically, the variables are pointers to objects (ie, addresses). Therefore, your code does the following:
// Start with Car.Engine equal to addr0
// Set variable newEngine to addr1
Engine newEngine = new Engine(200, "PS");
// Set variable oldEngine to 0 (null)
Engine oldEngine = null;
// Set variable oldEngine to addr0
oldEngine = Car.Engine;
// Set variable Car.Engine to addr1
Car.Engine = newEngine;
...
// Set variable Car.Engine to addr0
Car.Engine = oldEngine;
// At this point, the following is true:
// Car.Engine = addr0
// oldEngine  = addr0
// newEngine  = addr1
Therefore, newEngine IS NOT equal to oldEngine or Car.Engine, but the other two are equal. Hope this helps,

Sounds like somebody's got a case of the Mondays

-Jeff

GeneralLoad assmebly into new appdomain from filename Pin
Josh Ryon11-Dec-07 6:19
Josh Ryon11-Dec-07 6:19 
GeneralRe: Load assmebly into new appdomain from filename Pin
Josh Ryon11-Dec-07 6:46
Josh Ryon11-Dec-07 6:46 
QuestionC# Deployment on Remote Machine [modified] Pin
Tiger_tom11-Dec-07 5:13
Tiger_tom11-Dec-07 5:13 
GeneralGarbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 4:48
sponsorJudah Gabriel Himango11-Dec-07 4:48 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 7:01
sitebuilderLuc Pattyn11-Dec-07 7:01 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 7:55
sponsorJudah Gabriel Himango11-Dec-07 7:55 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 8:21
sitebuilderLuc Pattyn11-Dec-07 8:21 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 9:14
sponsorJudah Gabriel Himango11-Dec-07 9:14 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Pete O'Hanlon11-Dec-07 9:49
mvePete O'Hanlon11-Dec-07 9:49 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 9:52
sitebuilderLuc Pattyn11-Dec-07 9:52 
QuestionON_MESSAGE in C# Pin
PKR11-Dec-07 3:57
PKR11-Dec-07 3:57 
GeneralRe: ON_MESSAGE in C# Pin
Anthony Mushrow11-Dec-07 4:08
professionalAnthony Mushrow11-Dec-07 4:08 
GeneralRe: ON_MESSAGE in C# Pin
PKR11-Dec-07 5:08
PKR11-Dec-07 5:08 
GeneralObject cannot be cast from DBNull to other types. Pin
eyeseetee11-Dec-07 3:51
eyeseetee11-Dec-07 3:51 
GeneralRe: Object cannot be cast from DBNull to other types. Pin
Anthony Mushrow11-Dec-07 4:12
professionalAnthony Mushrow11-Dec-07 4:12 
GeneralRe: Object cannot be cast from DBNull to other types. Pin
Pete O'Hanlon11-Dec-07 5:26
mvePete O'Hanlon11-Dec-07 5:26 
GeneralPassing dynamic 2 dim float array in c# to unmanaged c++ dll Pin
f4hd11-Dec-07 3:14
f4hd11-Dec-07 3:14 

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.