What is the use of Indexers in C#?

Why do we use Indexers in C#? How does indexers help in C# programming?

  • Soni
  • 18 मई
  • 2 उत्तर

2 उत्तर
1-2 of  2
2 उत्तर
  • 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.
    0

c sharp programming
मॉक परीक्षण अभ्यास के लिए
c sharp programming