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
nidheesh n
NA
2
0
array3.sortedlist' does not contain a definition for 'add',ContainsKey,GetByIndex,ndexOfKey
Jun 14 2010 1:27 AM
using
System;
using
System.Collections.Generic;
using
System.Text;
using
System.Collections;
namespace
array3
{
class
car
{
private
string
carmodel;
private
string
carname;
public
string
Model
{
get
{
return
carmodel;
}
}
public
string
name
{
get
{
return
carname;
}
}
public
car(
string
carmodel,
string
carname)
{
this
.carmodel=carmodel;
this
.carname=carname;
}
}
class
sortedlist
{
static
void
Main(
string
[] args)
{
sortedlist
objcar =
new
sortedlist
();
objcar .add(
"1991"
,
"hyundai"
);
objcar.Add(
"1992"
,
"bmw"
);
Console
.WriteLine (
"enter model no"
);
string
model=
Console
.ReadLine();
if
(objcar.ContainsKey(model))
{
car
objcar2=(
car
)
objcar.GetByIndex(
objcar.IndexOfKey(model
));
Console
.WriteLine (
"car name={0}"
,objcar2.name);
}
else
{
Console
.WriteLine (
"not found"
);
}
}
}
}
Attachment:
array3.rar
Reply
Answers (
0
)
webproxy problem
comparing images at runtime in csharp