C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1838 Page Views: 

Is it possible to have a static indexer in C#?



Posted By: Avi Date: 28 August 2009 04:55:42 PM
 Answer:

Static indexers are not allowed in C#


Posted By: eTechPlanet


Date: 28 August 2009 04:55:42 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image dfV37n
Related Questions
C# : What will contain list t after following code?
List<int> t = new List<int>() {1,2,3};
t.ForEach((i) => i = i *2);
C# : How do you select even numbers using Where extension method on List<int>?

How do you select even numbers using Where extension method on List?

data.Where( I => I %2 == 0);
Category: C# Date: 10/15/2010 4:53:47 AM
C# : What will be the result of the following code:
struct T {public int A;}
static void Main(string[] args)
{
T a = new T();
a.A = 10;
T b = a;
a.A = 1;
Console.WriteLine(a.A == b.A);
}
C# : How do you use nullable types?

How do you use nullable types?

int? num = null; //declaration if(num.HasValue == true) Console.Write(num.Value); else Console.Write....
Category: C# Date: 10/15/2010 3:09:46 AM
C# : How can you access system clipboard from c#?

How can you access system clipboard from c#?

By using Clipboard object. For example – SetText – sets text in clipboards, GetText – returns text f....
Category: C# Date: 10/15/2010 2:59:46 AM