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
0
325k
DictionaryEntry
Aug 11 2013 4:19 PM
http://www.dotnetperls.com/dictionaryentry
Above website is saying that "DictionaryEntry is used
with
Hashtable". Also example program is given.
But 3rd program in the following website is using DictionaryEntry
without
Hashtable. Problem is highlighted. I wish to know the reason for discrepancy.
http://www.dotnetperls.com/exception
using System;
using System.Collections;
class Program
{
static void Main()
{
try
{
// Create new exception.
var ex = new DivideByZeroException("Message");
// Set the data dictionary.
ex.Data["Time"] = DateTime.Now;
ex.Data["Flag"] = true;
// Throw it!
throw ex;
}
catch (Exception ex)
{
// Display the exception's data dictionary.
foreach (
DictionaryEntry
pair in ex.Data)
{
Console.WriteLine("{0} = {1}", pair.Key, pair.Value);
}
}
Console.ReadKey();
}
}
Reply
Answers (
2
)
Sending mail with multipale File in asp
C# search list for a certain name and print matches