Snippet: public read-only indexer

property value
IDE VS Code
Language C#
Title public read-only indexer
Shortcut rir
Description public read-only indexer declaration

Placeholders

Identifier Tooltip Default Value
_type Indexer type T
parameters Parameters int index
value Value value

Code

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