Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
AnswerRe: looking for regex format Pin
OriginalGriff23-Jul-11 22:05
mveOriginalGriff23-Jul-11 22:05 
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 
well ok so i have a List<> of POCO objects that are serialized into json and back for transport over the wire from a web service ... now i don't send the actual data bytes with the list of items just the id and name (the data bytes can be several mb) and request the actual data bytes on demand ... once they are loaded from the server they are stored in memory in the List<>

my main form has a function to get a given document from the List<> ... that causes the doc class to see if the data is there, and if not, go get it and set a flag saying we have it now

then it returns the doc.doc_data which is a byte [] variable

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?

the 1st option would be very bad .... the 2nd is what i hope happens but i don't know how to tell what it is doing

hope that explains it better
Smile | :)

"mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

GeneralRe: c# pointers ? Pin
Mark Salsbery23-Jul-11 5:05
Mark Salsbery23-Jul-11 5:05 
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 

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.