Click here to Skip to main content
15,921,212 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
Simon P Stevens10-Oct-08 5:53
Simon P Stevens10-Oct-08 5:53 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
leppie10-Oct-08 6:41
leppie10-Oct-08 6:41 
GeneralRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
xax11-Oct-08 3:05
xax11-Oct-08 3:05 
AnswerRe: Is there a way (hopefuly an easy one) to access the video card buffer/memory? Pin
Giorgi Dalakishvili10-Oct-08 3:07
mentorGiorgi Dalakishvili10-Oct-08 3:07 
QuestionImplementing an interface question Pin
Harvey Saayman10-Oct-08 2:16
Harvey Saayman10-Oct-08 2:16 
AnswerRe: Implementing an interface question Pin
leppie10-Oct-08 2:26
leppie10-Oct-08 2:26 
GeneralRe: Implementing an interface question Pin
Harvey Saayman10-Oct-08 2:34
Harvey Saayman10-Oct-08 2:34 
GeneralRe: Implementing an interface question Pin
leppie10-Oct-08 2:41
leppie10-Oct-08 2:41 
Harvey Saayman wrote:
what do u think i should use?


A class. Structs are mostly useless in .NET unless you require their special semantics. Example:

MyType[] list = new MyType[10];

Now define MyType as a class and see what the content is in 'list'. Now do the same but define MyType as struct.

An important point to notice is the way 'instances' are passed around. With structs, a copy of the value of the instance will be made, where classes will just send a reference to itself. So if used wrong, structs can become a big performance/memory killer. There are also other considerations, like modifying structs and things to keep in mind like boxing, that just blurs everything! Smile | :)

xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - coming soon
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

GeneralRe: Implementing an interface question Pin
Harvey Saayman10-Oct-08 2:44
Harvey Saayman10-Oct-08 2:44 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 3:01
professionalDaveyM6910-Oct-08 3:01 
GeneralRe: Implementing an interface question Pin
leppie10-Oct-08 3:51
leppie10-Oct-08 3:51 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 4:28
professionalDaveyM6910-Oct-08 4:28 
GeneralRe: Implementing an interface question Pin
Guffa10-Oct-08 6:26
Guffa10-Oct-08 6:26 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 8:05
professionalDaveyM6910-Oct-08 8:05 
GeneralRe: Implementing an interface question Pin
Guffa10-Oct-08 12:08
Guffa10-Oct-08 12:08 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 13:00
professionalDaveyM6910-Oct-08 13:00 
Questiondata formating Pin
muharrem10-Oct-08 1:40
muharrem10-Oct-08 1:40 
AnswerRe: data formating Pin
DaveyM6910-Oct-08 1:49
professionalDaveyM6910-Oct-08 1:49 
QuestionDataSource Pin
reza assar10-Oct-08 1:34
reza assar10-Oct-08 1:34 
AnswerRe: DataSource Pin
SeMartens10-Oct-08 1:44
SeMartens10-Oct-08 1:44 
AnswerRe: DataSource Pin
nelsonpaixao10-Oct-08 12:54
nelsonpaixao10-Oct-08 12:54 
Questioncreat a shortcut Pin
reza assar10-Oct-08 1:31
reza assar10-Oct-08 1:31 
AnswerRe: creat a shortcut Pin
DaveyM6910-Oct-08 1:33
professionalDaveyM6910-Oct-08 1:33 
QuestionOut of memory errors on drawing images in Pdf file Pin
Ninii10-Oct-08 1:23
Ninii10-Oct-08 1:23 
AnswerRe: Out of memory errors on drawing images in Pdf file Pin
leppie10-Oct-08 2:28
leppie10-Oct-08 2:28 

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.