Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
benJIman
· 16y ago · 0 comments
You can always use the null coalescing operator.
(foo as Bar ?? new Bar()).Method();
Comments
No comments yet.
Better HN