# Indexer property in kotlin

**URL:** <https://discuss.kotlinlang.org/t/indexer-property-in-kotlin/386>\
**Category:** Uncategorized\
**Created:** [December 9, 2014, 11:26am UTC](https://discuss.kotlinlang.org/t/indexer-property-in-kotlin/386 "2014-12-09T11:26:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abugov](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@abugov](https://discuss.kotlinlang.org/u/abugov)\
**Post date:** [December 9, 2014, 11:26am UTC](https://discuss.kotlinlang.org/t/indexer-property-in-kotlin/386/1 "2014-12-09T11:26:55Z")

</div>

Is there an equivalent to C# "Indexer" proprty? example: [http://msdn.microsoft.com/en-us/library/6x16t2tx.aspx](http://msdn.microsoft.com/en-us/library/6x16t2tx.aspx)

---

<div class="post-metadata">

**Author:** ![bashor](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/bashor/32/1431_2.png) [@bashor](https://discuss.kotlinlang.org/u/bashor)\
**Post date:** [December 9, 2014, 11:47am UTC](https://discuss.kotlinlang.org/t/indexer-property-in-kotlin/386/2 "2014-12-09T11:47:13Z")

</div>

In Kotlin **square brackets** ([]) are translated to calls to **get** and **set** with appropriate numbers of arguments, e.g.&nbsp;&nbsp;a[b, c] -\> a.get(b, c), a[b, c] = d -\> a.set(b, c, d). For more information please see [http://kotlinlang.org/docs/reference/operator-overloading.html](http://kotlinlang.org/docs/reference/operator-overloading.html)
