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 are the valid parameter types we can pass in an
Indexer ?

Answers were Sorted based on User's Feedback



What are the valid parameter types we can pass in an Indexer ?..

Answer / dileep

IN,OUT,INOUT are the valid parameter types that we can pass
in a Indexer

Is This Answer Correct ?    6 Yes 1 No

What are the valid parameter types we can pass in an Indexer ?..

Answer / guest

Hi,
This is Madhu from HYD..............

Indexer is same as property procedure.It provides array like
accessing.

Indexers are used to access the array of elements with
respect to object name. The name of Indexers always this.
Indexer can't be static.

EX:---
Public class demoindexer
{
int []a={10,20,30,40};
public int this[int index]
{
get
{
return a[index];
}
set
{
a[index]=value;
}
}
public static void main()
{
demo obj1;
obj1=new demo();
obj1.[0]--->10;
obj1.[1]--->20;
obj1.[2]--->30;
obj1.[3]--->40;
}
}

Is This Answer Correct ?    7 Yes 2 No

What are the valid parameter types we can pass in an Indexer ?..

Answer / anjum rizwi

Hi Dileep,

Can you plz give me the example of indexer?

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Interview Questions

How to run the program at particular time? It should run everyday at 3:00 PM. After executing the program should sleep until next day at 3:00 PM. Please explain with code?

5 Answers   Sanat, Wipro,


What is the implicit name of the parameter that gets passed into the set method/property of a class?

0 Answers   Siebel,


What are the types of comment in c# with examples?

0 Answers  


How can we set the class to be inherited, but prevent the method from being over-ridden?

0 Answers  


How will you deploy the dll file in gac?

0 Answers  


Give an example of a directcast.

0 Answers  


Hi, Can we implement the Abstract class on interface in c#, If yes then provide the code implementation

1 Answers   RHR, Wipro,


Does unity use c++ or c#?

0 Answers  


What are c# i/o classes?

0 Answers  


Is string null or empty?

0 Answers  


What are partial classes and use of partial classes?

0 Answers   QuestPond,


What are the 2 broad classifications of data types available in c#?

0 Answers  


Categories