Snippet: public read-only auto property

property value
IDE Visual Studio
Language C#
Title public read-only auto property
Shortcut rp
Description public read-only auto-implemented property declaration
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_type Property type T yes
name Property name PropertyName yes

Code

public T PropertyName { get; }