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
Kok Keong Chua
NA
15
21.5k
Difference between class & type
May 6 2011 12:31 AM
Hi all,
I'm a newbie in C#, appreciated if someone can clear my doubt on the class & type:
DirectoryInfo is a .net class, we need to instantiate an object to use it as below:
string path = @"C:\My Folder";
DirectoryInfo di = new DirectoryInfo(path);
However, why we also can use this class as a type as shown below:
DirectoryInfo parent = Directory.GetParent(path);
Reply
Answers (
4
)
Starting Server along with the serial process
Crystal report columns