Skip to content
Discussion options

You must be logged in to vote

Let me answer your question with a question: were you expecting that to give you a new array, or were you expecting that to give you a new DateTime? Because the compiler inferred the former (and has no choice but to infer the former), and to create a new array you need an array creation expression, not a constructor.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@brandon-irl
Comment options

@333fred
Comment options

@brandon-irl
Comment options

@333fred
Comment options

@alrz
Comment options

Answer selected by brandon-irl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants