C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Console Applications C#


Posted Date: 24 Nov 2008      Posted By: Sachin Arora      Member Level: Silver     Points: 1   Responses: 1



if i am using
using System.Collections.Generic;
namespace in my application ,then why there is a the need of using
using System.Collections;
namespace in same application





Responses

Author: Babu Akkandi    24 Nov 2008Member Level: DiamondRating: 4 out of 54 out of 54 out of 54 out of 5     Points: 6

Hi,

This is Good Question.

We Need to Include both, because "Using" Will Includes only the content of Top Level Namespaces.

using System.Collections;
using System.Collections.Generic;

If you Include Only "System.Collections.Generic", You Access the methods, property, field from Generic class not root level (*.Collections.*),

also some of the localized objects are instantiated in "System.Collections" which may be used in Generic Class

Regards,
Babu A

Thanks and Regards,
Babu Akkandi
Microsoft Technology



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : how to display unicodes
Previous : Databinding using dropdown selected value into gridview - XML Data
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use