Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is indexers in C#

Answers were Sorted based on User's Feedback



What is indexers in C#..

Answer / satish

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.

Is This Answer Correct ?    18 Yes 3 No

What is indexers in C#..

Answer / abdul razack

n c# introduce new concept is Indexer. This is very useful for some situation. Let as discuss something about Indexer.
Indexer Concept is object act as an array.
Indexer an object to be indexed in the same way as an array.
Indexer modifier can be private, public, protected or internal.
The return type can be any valid C# types.
Indexers in C# must have at least one parameter. Else the compiler will generate a compilation error.

Is This Answer Correct ?    6 Yes 1 No

What is indexers in C#..

Answer / aby

Indexer enables an object to be
indexed in the same way as an array.

Is This Answer Correct ?    3 Yes 1 No

What is indexers in C#..

Answer / anil

Indexers are Location indicators and are used to access
class objects, just like elements in an array. They are
useful in cases where a class is a container for other
objects.

1.Indexer takes an Index argument and looks like an Array.
2.Indexer is declared using the name this.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What is difference between mutable and immutable in c#?

0 Answers  


What is the use of "default" and "Using" keyword?

3 Answers   TCS,


Describe the parts of assembly.

0 Answers  


Can the accessibility of a type member be greater than the accessibility of its containing type?

0 Answers  


What is the use of list in c#?

0 Answers  


Is versioning applicable to private assemblies?

0 Answers   Arigo Infotech,


if i used stored procedure for retrieving the data from sql server.in front end i had used data reader.when 100 records are there in table.when it has displayed ten records in frontend database has been collapsed.then where should our data available...

2 Answers   CybAge, Wipro,


How do you prevent a method from being overridden in c#?

0 Answers  


What is type casting. Explain it with reference to classes.

2 Answers   HCL, JPMorgan Chase,


Can multiple catch blocks be executed?

1 Answers  


What is cookies in c# asp net?

0 Answers  


What?s the difference between // comments, /* */ comments and /// comments?

2 Answers   Intel, Visual Soft,


Categories