Skip to content

About lambda short forms, and other preview items #112932

Closed Locked Answered by huoyaoyuan
mwpowellhtx asked this question in Q&A
Discussion options

You must be logged in to vote

On the question of a field keyword... what is the naming guidance around that? And could we automagically, for instance, specify underscore prefixed? i.e.

This is a misunderstanding about the feature. You don't need to declare the underlying field. This is a complete property definition:

public int Value { get => field; set => field = value; }

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@mwpowellhtx
Comment options

@mwpowellhtx
Comment options

@huoyaoyuan
Comment options

Answer selected by CyrusNajmabadi
Comment options

You must be logged in to vote
2 replies
@mwpowellhtx
Comment options

@huoyaoyuan
Comment options

Comment options

You must be logged in to vote
3 replies
@mwpowellhtx
Comment options

@huoyaoyuan
Comment options

@CyrusNajmabadi
Comment options

Comment options

You must be logged in to vote
1 reply
@CyrusNajmabadi
Comment options

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