Snippet: public read-only field

property value
IDE Visual Studio
Language C#
Title public read-only field
Shortcut rf
Description public read-only field declaration
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_type Field type T yes
name Field name FieldName yes

Code

public readonly T FieldName;