, ( , - ) -, , null.
:
- .. "null", → .
- Parse → "null", → . (, TryParse 2.0).
On the other hand, when an argument is not required, the method usually "swallows the frog" when it is null and treats it as some default value, such as an empty string. In the case of the WriteLine method of the Console object, it really doesn’t need a line, it just writes it to the console, so it doesn’t matter if it is null.
So, as others say, it depends on which method you are trying to use, and it is better to read before trying to pass null values.
source
share