G
Guest
Hi,
I would like to know which one of the following parameter types is faster.
I think is ref because sending a pointer to a class seems to be much more
faster then copy all the class at once in the method call.
But when I was having classes about C# programming in Microsoft Official
Course, my teacher told me that in .NET val is faster, that's why it is the
default parameter type. But he couldn't explain why.
Any ideas?
Thank you.
Roby Eisenbraun Martins
I would like to know which one of the following parameter types is faster.
I think is ref because sending a pointer to a class seems to be much more
faster then copy all the class at once in the method call.
But when I was having classes about C# programming in Microsoft Official
Course, my teacher told me that in .NET val is faster, that's why it is the
default parameter type. But he couldn't explain why.
Any ideas?
Thank you.
Roby Eisenbraun Martins