![]() ![]() The storage location of the object is passed to the method as the value of the reference parameter. Passing a reference type by reference enables the called method to replace the object to which the reference parameter refers in the caller. You can also use the ref keyword to pass reference types by reference. The previous examples pass value types by reference. Passing an argument by reference: An example The in keyword can't be used on any generic type, even when constrained to be a struct.
0 Comments
Leave a Reply. |