79631496

Date: 2025-05-21 07:52:03
Score: 1.5
Natty:
Report link

Passing the objects by ref would let you do this - for example

if (key == 'B')
{
    BuyX (ref bstr, ref bstrCost, ref sp, 10);
}

public static void BuyX(ref double bstr, ref double bstrCost, ref double sp, double z) 

See here for full details: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nick Pattman