TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dharmender Singh
NA
1
0
error in indexers program
Oct 3 2005 2:32 AM
// program for indexers
using System;
using System.Collections;
class List
{
ArrayList array= new ArrayList();
public object this[int index]
{
get
{
if (index<0 || index>=array.Count)
{
return null;
}
else
{
return (array [index]);
}
}
set
{
array [ index ]=value;
}
}
}
class IndexerTest
{
public static void Main()
{
List list= new List();
list[0]="abc";
list[1]="123";
list[2]="xyz";
for (int i=0;i<=list.Count;i++)
Console.WriteLine(list[i]);
}
}
Reply
Answers (
0
)
what is eof char in c#
xml parsing of IIS log files