Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Doubts in c#.net
March 09, 2011
1.Garbage collection (IDisposable, Destructor, GC.Collect())
2.diff b/w delegate and event
3.Conditions in Generics
4.diff b/w hashtable and dictionary
5.diff b/w .Equals and ReferenceEquals
Posted Date: March 09, 2011 Points: 20
Garbage collection ?
Delegates and Events?
Events are the actions of the system on user manipulations (e.g. mouse clicks, key press, timer etc.) or any event triggered by the program.
Delegate is type which holds the method(s) reference in an object. It is also refered as a type safe function pointers.
Conditions in Generics?
diff b/w hashtable and dictionary?
Dictionary is typed (so valuetypes don't need boxing), a Hashtable isn't (so valuetypes need boxing). Hashtable has a nicer way of obtaining a value than dictionary IMHO, because it always knows the value is an object. Though if you're using .NET 3.5, it's easy to write an extension method for dictionary to get similar behavior.
Equals tests for value quality, and ReferenceEquals tests for reference equality.
Equals basically calls the instance Equals method on the first object, using the second object as a parameter. In the case that both object references are null, it returns true, and in the case that only one reference is null, it returns false. The ReferenceEquals method returns true if both object references point to the same object or if both object references are null.
Thanks And Regards.
To post reply
Related Questions Related Questions
Sharepoint Webpart doubts
Doubts in WPF and design patterns
Doubts in primary key and foreign key concepts.
New to DoT NET.. Clear My Basic Doubts?
Latest Forum Questions From The Same Category
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
USSD using AT COMMAND
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend