Skip to content

Commit

Permalink
Fix code regarding to console output log (#37754)
Browse files Browse the repository at this point in the history
I could change the console output but based on the other part of the code it seems the code should be changed.
So the snippet is talking about ``ref parameter `` and first creates an object with ID ``54321`` and then seems to want to change ID to ``12345`` to show the case.
  • Loading branch information
sa-es-ir authored Oct 27, 2023
1 parent 7ba9d85 commit 02ce451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Product(string name, int newID)
private static void ChangeByReference(ref Product itemRef)
{
// Change the address that is stored in the itemRef parameter.
itemRef = new Product("Stapler", 99999);
itemRef = new Product("Stapler", 12345);
}

private static void ModifyProductsByReference()
Expand Down

0 comments on commit 02ce451

Please sign in to comment.