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
What is a copy constructor in c#?
Is post back in c#?
How can I get around scope problems in a try/catch?
Why do we use partial class in c#?
What does console mean c#?
What is anonymous class in c#?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
What is the max value of int32 in c#?
Why delegate is used in c#?
What are constants in c#?
What is xml serialization and deserialization in c#?
Why to use “using” in c#?
Describe two uses of the “using” statement during the operation of c#?
What is web forms in c#?
Can arraylist store different data types in c#?