Click here to Skip to main content
16,005,169 members
Home / Discussions / C#
   

C#

 
GeneralRe: Design a Class [modified] Pin
#realJSOP10-Oct-08 1:37
professional#realJSOP10-Oct-08 1:37 
QuestionHow to save icons Pin
Ankit Rajpoot10-Oct-08 0:15
Ankit Rajpoot10-Oct-08 0:15 
AnswerRe: How to save icons Pin
JoeSharp10-Oct-08 1:52
JoeSharp10-Oct-08 1:52 
QuestionValue type vs reference type Pin
Mogaambo10-Oct-08 0:05
Mogaambo10-Oct-08 0:05 
AnswerRe: Value type vs reference type Pin
rah_sin10-Oct-08 0:17
professionalrah_sin10-Oct-08 0:17 
AnswerRe: Value type vs reference type Pin
DaveyM6910-Oct-08 0:17
professionalDaveyM6910-Oct-08 0:17 
GeneralRe: Value type vs reference type Pin
Mogaambo10-Oct-08 0:26
Mogaambo10-Oct-08 0:26 
GeneralRe: Value type vs reference type Pin
DaveyM6910-Oct-08 1:21
professionalDaveyM6910-Oct-08 1:21 
I'm no expert in stack/heap stuff, so if what I type below is erroneous, would one of the CP gurus please correct it!

Value types are placed on the stack, reference types are placed on the heap but the reference to them are placed on the stack. A method's parameters are placed on the stack - either a copy of the value type, or a copy of the reference to the reference type, therefore the heap doesn't come into the equasion at all.
Extra stack space is taken whichever way you do it. Reference will be more efficient if you would otherwise be passing large structs (value types), but the stack is very efficient so I wouldn't worry too much.

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: Value type vs reference type Pin
DaveyM6910-Oct-08 2:20
professionalDaveyM6910-Oct-08 2:20 
GeneralRe: Value type vs reference type Pin
Mogaambo10-Oct-08 2:23
Mogaambo10-Oct-08 2:23 
GeneralRe: Value type vs reference type Pin
DaveyM6910-Oct-08 2:39
professionalDaveyM6910-Oct-08 2:39 
Generalwindows service - Day light Time saving handling Pin
raju_golla9-Oct-08 23:51
raju_golla9-Oct-08 23:51 
GeneralRe: windows service - Day light Time saving handling Pin
Ashfield10-Oct-08 0:29
Ashfield10-Oct-08 0:29 
GeneralRe: windows service - Day light Time saving handling Pin
raju_golla10-Oct-08 0:37
raju_golla10-Oct-08 0:37 
QuestionDebug method for unhandled Thread and AppDomain.CurrentDomain Exceptions Pin
matixsc9-Oct-08 23:23
professionalmatixsc9-Oct-08 23:23 
Question[Message Deleted] Pin
sachinss19869-Oct-08 23:11
sachinss19869-Oct-08 23:11 
AnswerRe: Row deletion problem in Data grid Pin
Mycroft Holmes9-Oct-08 23:20
professionalMycroft Holmes9-Oct-08 23:20 
AnswerRe: Row deletion problem in Data grid Pin
DaveyM699-Oct-08 23:29
professionalDaveyM699-Oct-08 23:29 
QuestionWhere does Settings.Default.MySetting come from? Pin
buchstaben9-Oct-08 22:17
buchstaben9-Oct-08 22:17 
AnswerRe: Where does Settings.Default.MySetting come from? Pin
Simon P Stevens9-Oct-08 22:33
Simon P Stevens9-Oct-08 22:33 
GeneralRe: Where does Settings.Default.MySetting come from? Pin
buchstaben9-Oct-08 23:24
buchstaben9-Oct-08 23:24 
AnswerRe: Where does Settings.Default.MySetting come from? Pin
Mycroft Holmes9-Oct-08 23:22
professionalMycroft Holmes9-Oct-08 23:22 
QuestionRestore application from system tray when clicking the application's desktop shortcut icon in c# Pin
jairaj9-Oct-08 22:06
jairaj9-Oct-08 22:06 
AnswerRe: Restore application from system tray when clicking the application's desktop shortcut icon in c# Pin
DaveyM699-Oct-08 23:16
professionalDaveyM699-Oct-08 23:16 
AnswerRe: Restore application from system tray when clicking the application's desktop shortcut icon in c# Pin
Giorgi Dalakishvili9-Oct-08 23:38
mentorGiorgi Dalakishvili9-Oct-08 23:38 

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.