About 235,000 results
Open links in new tab
  1. C# Indexers - GeeksforGeeks

    Jan 25, 2025 · In C#, an indexer allows an instance of a class or struct to be indexed as an array. When an indexer is defined for a class, then that class will behave like a virtual array. Array …

  2. Indexers - C# | Microsoft Learn

    Aug 23, 2024 · Indexers in C# allow class or struct instances to be indexed like arrays. You can set or get the indexed value without specifying a type or instance member.

  3. Indexers in C# - C# Corner

    A C# indexer is a class property that allows you to access a member variable of a class or struct using the features of an array. In C#, indexers are created using this keyword. Indexers in C# …

  4. C# Indexers (With Examples) - Programiz

    An indexer allows us to access instances of a class using an index just like an array. In this tutorial, you will learn about the C# indexer with the help of examples.

  5. Indexers in C# With Examples - Dot Net Tutorials

    What are Indexers in C#? The indexer in C# is a property of a class that allows us to access a member variable of a class using the features of an array. That means the Indexers in C# are …

  6. Indexers, Generic Indexer, Overload Indexers in C#

    An indexer is a special type of property that allows a class or a structure to be accessed like an array for its internal collection. C# allows us to define custom indexers, generic indexers, and …

  7. C# Indexers Explained - Online Tutorials Library

    C# Indexers Explained - Learn about C# Indexers, their syntax, how to use them, and practical examples to enhance your programming skills.

  8. Indexers in C# - Code Maze

    Sep 14, 2022 · In this article, we are going to learn about Indexers in C#, how to declare them in a class, struct, or interface, and overload them. We’re also going to learn what the differences …

  9. C# Indexer - C# Tutorial

    Summary: in this tutorial, you’ll learn how to use the C# indexer to make an object indexed like an array. An index allows an object of a class to be indexed like an array. To define an indexer for …

  10. Exploring Indexers in C#: Array-Like Access for Custom Types

    Nov 13, 2024 · Indexers in C# enable you to treat custom objects like arrays, providing an intuitive way to access elements while keeping the internal structure private. In this article, we’ll explore …

  11. Using Indexers - C# | Microsoft Learn

    Aug 23, 2024 · Indexers are a syntactic convenience that enables you to create a class, struct, or interface that client applications can access as an array. The compiler generates an Item …

  12. Lesson 11: Indexers - C# Station

    Jun 8, 2016 · This lesson teaches C# Indexers. Our objectives are as follows: Understand What Indexers Are For. Implement an Indexer. Overload Indexers. Understand How to Implement …

  13. Indexers in C# - NET Programmer

    Indexers in C# allow us to interact with instances of a class using brackets ([]), just like with arrays. Let's see how to use them on a practical example. Firstly, we define a class called Book.

  14. Indexers in C# - C# Tutorial - KnowledgeHut

    Indexers in C# allow the objects of classes or structures to be indexed like arrays. Classes behave like virtual arrays when indexers are defined for them. Some of the salient points about …

  15. C# - Indexers: A Beginner's Guide - C# Advanced Tutorial

    We've explored the world of C# indexers, from basic syntax to overloaded indexers. Remember, indexers are powerful tools that can make your code more intuitive and easier to use. They're …

  16. Indexers in C# - Sanfoundry

    Learn about indexers in C#: efficient access to elements like arrays, simplified data retrieval and manipulation in custom classes or collections.

  17. Indexers in Interfaces - C# | Microsoft Learn

    Aug 23, 2024 · Indexers can be declared on an interface in C#. Learn how accessors of interface indexers differ from the accessors of class indexers.

  18. C# 13: Partial Properties and Indexers Simplified - C# Corner

    Now in C# 13.0, this small but powerful feature has come with Partial Properties and Indexers. It may look like a small update, but in real development, it’s actually a big one. In this blog, let’s …

  19. C# Indexer with Examples - Tutlane

    In c#, Indexer is a special type of property, and that allows instances of a class or structure to be indexed same like an array. If we define an indexer for a class, then that class will behave like …

  20. Explore ranges of data using indices and ranges - C#

    Ranges and indices provide a succinct syntax for accessing single elements or ranges in a sequence. In this tutorial, you'll learn how to: Use the syntax for ranges in a sequence. …

  21. Comparison Between Properties and Indexers - C# | Microsoft Learn

    Mar 12, 2024 · Compare how indexers in C# are like properties. Except for some differences, the rules that are defined for property accessors apply to indexer accessors.

  22. C# 14 - Exploring extension members - .NET Blog

    May 8, 2025 · The C# team has explored adding other types of extension members for many years. There is no perfect syntax for this feature. While we have many goals, we settled on …

    Missing:

    • indexers

    Must include:

  23. Pattern matching - A tour of C# | Microsoft Learn

    May 13, 2025 · These lessons teach you the fundamentals of the C# language. Tip. When a code snippet block includes the "Run" button, that button opens the interactive window, or replaces …

    Missing:

    • indexers

    Must include:

  24. Some results have been removed