Answer Posted / supraja
C# introduces a new concept known as Indexers which are
used for treating an object as an array. The indexers are
usually known as smart arrays in C# community. Defining a
C# indexer is much like defining properties. We can say
that an indexer is a member that enables an object to be
indexed in the same way as an array.
The following is syntax
<modifier> <return type> this [argument list]
{
get
{
// Get codes goes here
}
set
{
// Set codes goes here
}
}
| Is This Answer Correct ? | 37 Yes | 1 No |
Post New Answer View All Answers
Illustrate race condition?
What are the two kinds of properties in c#.
Explain the constructor in c#.
What is #region in c#?
Are arrays value types or reference types?
What is the difference between abstraction and encapsulation in c#?
Could you explain the difference between func vs action vs predicate?
Does c# support parameterized properties?
Why data types are important?
What exactly happens when we debug and build the program?
What is dataadapter c#?
Why do we use inheritance in c#?
Explain the types of Polymorphism.
What is using keyword in C#?
Is static class thread safe in c#?