Snippet: public read-only indexer

property value
IDE Visual Studio
Language C#
Title public read-only indexer
Shortcut rir
Description public 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

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