79816661

Date: 2025-11-11 13:00:37
Score: 1
Natty:
Report link

You should likely implement a null object pattern.

so "static string[]" and not "static string[]?"

If you need a collection that can expand, then use List<string>

But most important, if something can be null at an interface to any external interface, wrap the handling logic in a nullObject pattern, and then let the program "do nothing" rather than send "nullable" values around. Likely the best option you have.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: Morten Bork