Top "Indexer" questions

How do I overload the [] operator in C#

I would like to add an operator to a class. I currently have a GetValue() method that I would like …

c# operator-overloading indexer
Static Indexers?

Why are static indexers disallowed in C#? I see no reason why they should not be allowed and furthermore they …

c# .net static indexer static-indexers
Eclipse CDT indexer does not know C++11 containers

I configured a C++11 project in Eclipse CDT to use gcc-4.7. It is not the default compiler on my system, …

eclipse c++11 build indexer
Eclipse CDT indexer - how to solve unresolved includes

I have a workspace with multiple projects, which all compile with no problems. However, some of the projects are giving …

eclipse-cdt indexer
When should you use C# indexers?

I'd like to use indexers more, but I'm not sure when to use them. All I've found online are examples …

c# indexer
Real world use cases for C# indexers?

I've seen lot of examples for c# Indexers, but in what way will it help me in real life situations. …

c# indexer
Implementing an indexer in a class in TypeScript

Is it currently possible to implement an indexer on a class in TypeScript? class MyCollection { [name: string]: MyType; } This doesn't …

class typescript indexer
Eclipse has two C/C++ indexers (fast & full): what's the difference?

Eclipse CDT provides two indexers for C/C++ code (Preferences > C/C++ > Indexer). Does anybody know what the …

c++ c eclipse eclipse-cdt indexer
How can you bind an Indexed property to a control in WPF

Given an instance of the class ThisClassShouldBeTheDataContext as the Datacontext for the view class ThisClassShouldBeTheDataContext { public Contacts Contacts {get;set;} } …

wpf xaml binding properties indexer
Class with indexer and property named "Item"

Is it possible to create a class in .NET 4 with: an indexer, a property named "Item"? For example, this C# …

c# .net indexer