Snippet: private read-only indexer

property value
IDE Visual Studio
Language C#
Title private read-only indexer
Shortcut prir
Description private read-only indexer declaration
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_type Indexer type T yes
parameters Parameters int index yes
value Value value yes

Code

private T this[int index] {
	get { return value; }
}