D
Dennis Myrén
Hi.
Is there any difference between
void Method ( MyReferenceType myReferenceType )
and
void Method ( ref MyReferenceType myReferenceType )
(MyReferenceType is a class)
The MyReferenceType is indeed a reference type, so the two statements above
should be equal?
Or could it be that the ref keyword uses the same pointer, where not using
ref keyword creates a new pointer?
Anyhow, I would like to use the most efficient.
Thank You.
Is there any difference between
void Method ( MyReferenceType myReferenceType )
and
void Method ( ref MyReferenceType myReferenceType )
(MyReferenceType is a class)
The MyReferenceType is indeed a reference type, so the two statements above
should be equal?
Or could it be that the ref keyword uses the same pointer, where not using
ref keyword creates a new pointer?
Anyhow, I would like to use the most efficient.
Thank You.