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
Maha
NA
600
70.8k
what is List?
Nov 24 2014 6:46 AM
In this example
List
is given a type '
int
' so that can we say
List
does not have type. If so, what is
List
. Problem is heighlited.
using System;
using System.Collections.Generic;
class Program
{
static void Main()
{
List<int> oyears = new List<int>();
oyears.Add(1990);
oyears.Add(1991);
oyears.Add(1992);
oyears.Add(1993);
oyears.Add(2001);
oyears.Add(2002);
oyears.Add(2003);
foreach (int item in oyears)
{
Console.WriteLine(item);
}
Console.ReadKey();
}
}
Reply
Answers (
2
)
Variance calculation
Winform