Click here to Skip to main content
15,896,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeView Question--Please help Pin
T4AMD20-Dec-07 14:42
T4AMD20-Dec-07 14:42 
GeneralBeginner programming question Pin
cmh62320-Dec-07 13:34
cmh62320-Dec-07 13:34 
GeneralRe: Beginner programming question Pin
Jordanwb20-Dec-07 13:46
Jordanwb20-Dec-07 13:46 
GeneralRe: Beginner programming question PinPopular
Christian Graus20-Dec-07 14:12
protectorChristian Graus20-Dec-07 14:12 
GeneralRe: Beginner programming question Pin
Jordanwb20-Dec-07 14:23
Jordanwb20-Dec-07 14:23 
GeneralRe: Beginner programming question Pin
Christian Graus20-Dec-07 15:16
protectorChristian Graus20-Dec-07 15:16 
GeneralRe: Beginner programming question Pin
Paul Conrad23-Dec-07 7:23
professionalPaul Conrad23-Dec-07 7:23 
GeneralRe: Beginner programming question Pin
DavidNohejl20-Dec-07 23:55
DavidNohejl20-Dec-07 23:55 
Jordanwb wrote:
In my opinion using a function to do that is overkill.


In this case I agree, I'd use even extremely simple function if it increased readability, which is not the case. Performance-wise it's equal, this is going to be inlined.

Jordanwb wrote:
Keep in mind that some variable types pass by reference and not value, an example
would be String (capital S). If the data type is dark blue it's a primitive (pass by value), if it is light blue it is an object (passes by reference).


First, .NET System.String type and C# string type are exactly THE SAME type. And it's passed by reference. There happen to be two primitive types that are not value types - string and object. Whenever you make your own type that derives (even indirectly) from <c>ValueType, its passed by value. And guess what, it appears light blue in editor. So wrong, wrong and wrong. Sigh | :sigh:


[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe


GeneralRe: Beginner programming question Pin
Paul Conrad23-Dec-07 7:24
professionalPaul Conrad23-Dec-07 7:24 
GeneralRe: Beginner programming question Pin
Jordanwb23-Dec-07 9:14
Jordanwb23-Dec-07 9:14 
GeneralRe: Beginner programming question Pin
Paul Conrad23-Dec-07 9:41
professionalPaul Conrad23-Dec-07 9:41 
GeneralShow me an elegant way to group objects Pin
Judah Gabriel Himango20-Dec-07 12:05
sponsorJudah Gabriel Himango20-Dec-07 12:05 
GeneralRe: Show me an elegant way to group objects Pin
Christian Graus20-Dec-07 12:08
protectorChristian Graus20-Dec-07 12:08 
GeneralRe: Show me an elegant way to group objects Pin
Judah Gabriel Himango20-Dec-07 12:09
sponsorJudah Gabriel Himango20-Dec-07 12:09 
AnswerRe: Show me an elegant way to group objects Pin
Guffa20-Dec-07 13:34
Guffa20-Dec-07 13:34 
GeneralRe: Show me an elegant way to group objects Pin
Judah Gabriel Himango20-Dec-07 15:18
sponsorJudah Gabriel Himango20-Dec-07 15:18 
GeneralRe: Show me an elegant way to group objects Pin
Guffa20-Dec-07 19:21
Guffa20-Dec-07 19:21 
GeneralRe: Show me an elegant way to group objects Pin
Mark Churchill20-Dec-07 15:22
Mark Churchill20-Dec-07 15:22 
GeneralRe: Show me an elegant way to group objects Pin
Judah Gabriel Himango20-Dec-07 16:30
sponsorJudah Gabriel Himango20-Dec-07 16:30 
GeneralRe: Show me an elegant way to group objects Pin
Mark Churchill20-Dec-07 19:38
Mark Churchill20-Dec-07 19:38 
GeneralSaveFileDialog on Vista not creating files???!! Pin
LongRange.Shooter20-Dec-07 9:58
LongRange.Shooter20-Dec-07 9:58 
GeneralRe: SaveFileDialog on Vista not creating files???!! Pin
Paul Conrad24-Dec-07 19:37
professionalPaul Conrad24-Dec-07 19:37 
GeneralSNTP Request Object Pin
Skippums20-Dec-07 8:59
Skippums20-Dec-07 8:59 
AnswerRe: SNTP Request Object Pin
Skippums21-Dec-07 5:02
Skippums21-Dec-07 5:02 
GeneralCounting the new items in the database Pin
s3rro20-Dec-07 7:56
s3rro20-Dec-07 7:56 

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.