What is the use of Indexers in C#?
Why do we use Indexers in C#? How does indexers help in C# programming?
- 3839 Views
- 2 Answers
2 Answers
-
-
- 18 May
- 0 Comment
-
-
C# introduces a new concept known as Indexers that allows are classes or stucts to be used as arrays. The indexers are usually known as smart arrays in C#. An indexer or an indexed property, is a class property that allows you to access a member variable of a class or struct using the features of an array.
-
- 02 Apr
- 0 Comment
-
- Can someone please update me with the important exam dates of C Sharp Programming Exam?
- C# programming language not based on C Language ?
- Is C++ better than C sharp? Explain your answer
- what is c# and how it is different?
- Is C# only for Windows? Explain your answer
- What is C Sharp used for? Explaijn your answer
- How can I practice the questions of C Sharp Programming? Where to find study material?
- EXAM PATTERN, SYLLABUS AND ELIGIBILITY TO CRACK C SHARP PROG
- Is C# better than Java? Explain your answer
- Is C# high level programming language? Is C++ and C# the same?
Practice Mock Test
c sharp programming
C# indexers are normally known as smart arrays. A C# indexer is a class property that enables you to access a member variable of a class or struct using the features of an array. In C#, indexers are generated using this keyword. Indexers in C# are suitable for both classes and structs. br /Defining an indexer enables you to create a class like that can allows its items to be accessed an array. Instances of that class can be accessed using the [] array access operator.br /