Yes you are right. I noticed it days ago and wanted to fix this today before anyone discovering the mistake. Then your comment comes LOL
We can fix this by ThrowIf.Argument.IsNull(foo, nameof(foo)), but foo, nameof(foo) is really redundant. I want to get the caller params name in callee directly and I found this: Proposal: Caller Parameter Name #1557. We can get the caller member name, line number, and the file path, but we cannot get the caller's params name.
For now, ThrowIf.Argument.IsNull(foo, nameof(foo)) may be the only way to display the name of params
Thanks for calling out! I just updated the blog according to your suggestion.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes you are right. I noticed it days ago and wanted to fix this today before anyone discovering the mistake. Then your comment comes LOL
We can fix this by
ThrowIf.Argument.IsNull(foo, nameof(foo))
, butfoo, nameof(foo)
is really redundant. I want to get the caller params name in callee directly and I found this: Proposal: Caller Parameter Name #1557. We can get the caller member name, line number, and the file path, but we cannot get the caller's params name.For now,
ThrowIf.Argument.IsNull(foo, nameof(foo))
may be the only way to display the name of paramsThanks for calling out! I just updated the blog according to your suggestion.