0

Is there a way to ignore an out parameter? I.e.

bool myIntIsValid = int.TryParse(stringValue, void);

or

bool myIntIsValid = int.TryParse(stringValue, out new int());
bubi
  • 6,414
  • 3
  • 28
  • 45

1 Answers1

1

No, you have to pass it a variable, but you're free to ignore it afterwards.

Rik
  • 28,507
  • 14
  • 48
  • 67