Skip to content

C# keyword 'empty' compiles to the static Empty property of List, Dictionary, etc. #66964

Discussion options

You must be logged in to vote

The collection-literals proposal (such were working on for the next version of c#) allows you to just use [] to represent 'empty' in all these cases.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by JustinMinnaar
Comment options

You must be logged in to vote
6 replies
@JustinMinnaar
Comment options

@CyrusNajmabadi
Comment options

@saint4eva
Comment options

@KennethHoff
Comment options

@CyrusNajmabadi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants