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
Can delegates be used as callbacks?
What is code verification?
what is IEquatable
Why do we need constructor?
what are the different ways a method can be overloaded?
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
what is IDisposal interface
What is file extension of webservices?
Name some string escape sequences in c#.
What is the difference between readkey and readline in c#?
what is c# command?
What is thread safe in c#?
What is hashtable in c# net with example?
What is a delegate? Explain.
What is the difference between abstract class and interface in c#?