C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
What are Indexers in C#?
Sudhir Goswami
12y
1.1k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
1. By using indexers we can read and modify the data present in private array. 2. Indexer enables objects to be indexed in a similar manner to array. 3. Get and set similar to properties. 4. ‘This' keyword is used to define indexers. 5. ‘value' keyword is used to define value to be assigned by set indexers. 6. Indexers do not have to be indexed by integer value. 7. It is up to you how to define specific look up mechanism. 8. Indexers can be override and overload. 9. Static indexers are not allowed. For similar kind of interview questions in c# you can refer this link
c# interview questions
Krishna Mohan
11y
0
When should I use static in C#?
What is immutable in C#?
Message