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
A Repasky
NA
231
183.7k
How to check for the keys when you have a dictionary in a dictionary
Aug 18 2011 3:21 PM
How can I write the if statement to check if the keys are not in the dictionary
when I have a dictionary in a dictionary?
I started the if statement, but I do not know how to finish it.
Code is below.
Thanks,
arep
public
static
Dictionary
<
string
,
Dictionary
<
string
,
DebOop
>> d =
new
Dictionary
<
string
,
Dictionary
<
string
,
DebOop
>>();
public
static
void
GetData(
string
memberNbr,
string
person,
string
group,
string
subGroup,
string
plancode,
string
date)
{
int
year = (
DateTime
.ParseExact(date,
"yyyy-MM-dd"
,
CultureInfo
.InvariantCulture)).Year;
//Is key not in dictionary
if
(!d.ContainsKey(memberNbr))
{
UpdateData(memberNbr, person, group, subGroup, plancode, date);
}
}
Reply
Answers (
11
)
My gridview is not populating ?
C#.net using active directory