Looking for some vb to c# translation help.
The immediate line below  in is causing an error in C# ("argument 1 must be passed with the 'ref' keyword") - adding a 'ref" before nextbutton.visible causes yet another error ("A property or indexer may not be passed as an out or ref parameter"). Any suggestions is appreciated.
nextButton.Enabled = InlineAssignHelper(nextButton.Visible, false);
private static T InlineAssignHelper<T>(ref T target, T value)
{
     target = value;
     return value;
}
Here is the VB.net code we are trying to convert used with no errors:
nextButton.Enabled = InlineAssignHelper(nextButton.Visible, False)
Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, ByVal value As T) As T
    target = value
    Return value
End Function
 
    