Click here to Skip to main content
15,900,973 members
Home / Discussions / C#
   

C#

 
GeneralRe: passing the value "null" for the ChangeDisplaySettings API function in C# Pin
tuxy4221-May-10 5:17
tuxy4221-May-10 5:17 
QuestionUITypeEditor problem - Get calling assembly Pin
Chris_McGrath11-Sep-08 15:24
Chris_McGrath11-Sep-08 15:24 
QuestionWindow.open() not working in IE7 & IE8 Pin
hivshi11-Sep-08 14:42
hivshi11-Sep-08 14:42 
AnswerRe: Window.open() not working in IE7 & IE8 Pin
Christian Graus11-Sep-08 15:21
protectorChristian Graus11-Sep-08 15:21 
AnswerRe: Window.open() not working in IE7 & IE8 Pin
Guffa12-Sep-08 0:27
Guffa12-Sep-08 0:27 
Questiondatagridview - edit columns size Pin
nelsonpaixao11-Sep-08 14:27
nelsonpaixao11-Sep-08 14:27 
AnswerRe: datagridview - edit columns size Pin
Eslam Afifi11-Sep-08 14:39
Eslam Afifi11-Sep-08 14:39 
AnswerRe: datagridview - edit columns size Pin
Mycroft Holmes11-Sep-08 15:10
professionalMycroft Holmes11-Sep-08 15:10 
QuestionFunny Control Behavior [modified] Pin
Member 204889411-Sep-08 14:00
Member 204889411-Sep-08 14:00 
QuestionToolstrip Items Disappeared Pin
kruegersck11-Sep-08 13:05
kruegersck11-Sep-08 13:05 
Questionstruct X class Pin
Dirso11-Sep-08 12:57
Dirso11-Sep-08 12:57 
AnswerRe: struct X class Pin
Judah Gabriel Himango11-Sep-08 13:00
sponsorJudah Gabriel Himango11-Sep-08 13:00 
AnswerRe: struct X class Pin
Christian Graus11-Sep-08 15:15
protectorChristian Graus11-Sep-08 15:15 
GeneralRe: struct X class Pin
Dirso11-Sep-08 15:37
Dirso11-Sep-08 15:37 
GeneralRe: struct X class Pin
Judah Gabriel Himango11-Sep-08 17:27
sponsorJudah Gabriel Himango11-Sep-08 17:27 
GeneralRe: struct X class Pin
Dirso12-Sep-08 0:11
Dirso12-Sep-08 0:11 
AnswerRe: struct X class Pin
Guffa11-Sep-08 20:52
Guffa11-Sep-08 20:52 
GeneralRe: struct X class Pin
Dirso12-Sep-08 0:13
Dirso12-Sep-08 0:13 
GeneralRe: struct X class Pin
Guffa12-Sep-08 2:32
Guffa12-Sep-08 2:32 
Dirso wrote:
Performance could be an issue here, so if struct is faster I'll go for it.


If you have an array of the type, a structure uses less memory, which can improve performance a bit. A struct is faster for some operations, but you have to keep it smaller than 16 bytes to be efficient.

Dirso wrote:
about change values I'll try to use "out"/"ref" parameters everytime, right?


That doesn't help, as you would still change the vales of a copy, which doesn't affect the original.

A structure should be immutable, i.e. you assign the values when you create the instance, and if you want to change a value you create a new instance. That way the structure instance works as a single value, which is the intention of the structure concept.

Despite everything, the person most likely to be fooling you next is yourself.

Questionwhich database is installed on every computer Pin
Deresen11-Sep-08 12:03
Deresen11-Sep-08 12:03 
AnswerRe: which database is installed on every computer Pin
Pete O'Hanlon11-Sep-08 12:25
mvePete O'Hanlon11-Sep-08 12:25 
AnswerRe: which database is installed on every computer Pin
Eslam Afifi11-Sep-08 12:35
Eslam Afifi11-Sep-08 12:35 
GeneralRe: which database is installed on every computer Pin
Member 204889411-Sep-08 14:05
Member 204889411-Sep-08 14:05 
AnswerRe: which database is installed on every computer Pin
Paul Conrad11-Sep-08 12:49
professionalPaul Conrad11-Sep-08 12:49 
AnswerRe: which database is installed on every computer Pin
Giorgi Dalakishvili12-Sep-08 0:49
mentorGiorgi Dalakishvili12-Sep-08 0:49 

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.