Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
QuestionEF 4.1 Pin
mehrdadc4822-Jul-11 21:37
mehrdadc4822-Jul-11 21:37 
AnswerRe: EF 4.1 Pin
Mark Salsbery23-Jul-11 14:37
Mark Salsbery23-Jul-11 14:37 
GeneralRe: EF 4.1 Pin
mehrdadc4823-Jul-11 18:21
mehrdadc4823-Jul-11 18:21 
GeneralRe: EF 4.1 Pin
Mark Salsbery23-Jul-11 21:11
Mark Salsbery23-Jul-11 21:11 
Questionc# pointers ? Pin
l a u r e n22-Jul-11 11:02
l a u r e n22-Jul-11 11:02 
AnswerRe: c# pointers ? Pin
Mark Salsbery22-Jul-11 12:06
Mark Salsbery22-Jul-11 12:06 
GeneralRe: c# pointers ? Pin
l a u r e n23-Jul-11 1:40
l a u r e n23-Jul-11 1:40 
GeneralRe: c# pointers ? Pin
Mark Salsbery23-Jul-11 5:05
Mark Salsbery23-Jul-11 5:05 
l a u r e n wrote:
my actual question is this: when i do "return doc.doc_data" does it make a copy of the data on the stack and pass it back, or does it simply return a ptr / ref to that data?


Depends on the code in the property/method returning the array... is it making a copy and returning a reference to that copy or just returning a reference to the original data?

Arrays are reference types.

For reference types you need to explicitly make a copy of the data to have two copies. Otherwise a reference refers to the same object, even if you make a copy of the reference.

Pointers are so not relevant here... Smile | :)
Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: c# pointers ? Pin
l a u r e n23-Jul-11 5:59
l a u r e n23-Jul-11 5:59 
GeneralRe: c# pointers ? PinPopular
Mark Salsbery23-Jul-11 6:15
Mark Salsbery23-Jul-11 6:15 
GeneralRe: c# pointers ? Pin
l a u r e n23-Jul-11 6:37
l a u r e n23-Jul-11 6:37 
GeneralRe: c# pointers ? Pin
Mark Salsbery23-Jul-11 6:57
Mark Salsbery23-Jul-11 6:57 
GeneralRe: c# pointers ? Pin
David198723-Jul-11 6:54
David198723-Jul-11 6:54 
GeneralRe: c# pointers ? Pin
Mark Salsbery23-Jul-11 6:57
Mark Salsbery23-Jul-11 6:57 
GeneralRe: c# pointers ? Pin
David198723-Jul-11 7:01
David198723-Jul-11 7:01 
AnswerRe: c# pointers ? Pin
Dan Mos22-Jul-11 12:50
Dan Mos22-Jul-11 12:50 
GeneralRe: c# pointers ? Pin
l a u r e n23-Jul-11 1:41
l a u r e n23-Jul-11 1:41 
AnswerRe: c# pointers ? Pin
PIEBALDconsult22-Jul-11 14:33
mvePIEBALDconsult22-Jul-11 14:33 
GeneralRe: c# pointers ? Pin
l a u r e n23-Jul-11 1:42
l a u r e n23-Jul-11 1:42 
AnswerRe: c# pointers ? Pin
David198722-Jul-11 22:01
David198722-Jul-11 22:01 
GeneralRe: c# pointers ? Pin
l a u r e n23-Jul-11 1:34
l a u r e n23-Jul-11 1:34 
AnswerRe: c# pointers ? Pin
Abhinav S22-Jul-11 22:17
Abhinav S22-Jul-11 22:17 
Questionhow to send data to website without open the browser Pin
Gali197822-Jul-11 8:10
Gali197822-Jul-11 8:10 
AnswerRe: how to send data to website without open the browser Pin
Blue_Boy22-Jul-11 8:23
Blue_Boy22-Jul-11 8:23 
AnswerRe: how to send data to website without open the browser Pin
David198722-Jul-11 8:27
David198722-Jul-11 8:27 

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.