|
-
Feb 21st, 2003, 03:00 PM
#1
Thread Starter
yay gay
arguments by reference
as i see that in c++ there is heavy use of pointers i got a question...would it be worth instead of passing in C# arguments by value pass them all or almost all as ref?
\m/  \m/
-
Feb 22nd, 2003, 09:07 AM
#2
No. In C# all object are passed by reference by default. It only makes sense for parameters of large value structs (e.g. Rectangle). Small value structs shouldn't be passed as ref unless you want to modify them.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|