Pass by value vs Pass by reference performance C#.net -


I'm basically creating a light square, it is passed in approximately 10 parameters, these paramteres do not change It is only in the manufacturer when stores them locally.

There are some reference types (strings, classes), others are price types (int, bull, enormoes).

My question is, should I pass all these (except my classes) with "referee"?

My idea here is the performance.

Use only riff , if the method needs to change the parameter , And these changes call calling code. You should only optimize it, if you have run it through a professor and determined that the barrier is actually copying the method parameters on the CLR stack.

Keep in mind that the CLR parameter, so I do not think this will be the problem.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -