Sign in to follow this  

System class in C#!

This topic is 4861 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, Just playing around with my new book, at's a Noob course in C#. Here im reading that all classes are defined from the base class defined in the System file. If i would say like Person P1 = new person(); This actualy is gonna be generated from the base class in the System namespace. (correct me if im wrong, im just a noob...) So if i would like to print variable as a string to the screen from another class like : return(BirthDate.ToString("D")); this ToString is actually a method in the base class from System no ? So my question is how can i open this System file to look what other functions and methods are present and handy to use ?!? Thanks, Galo

Share this post


Link to post
Share on other sites
The base class for all classes is 'object'. ToString is a method of the object class and is available to use in any class defined in C#. You may also overload it in your classes to change it's functionality.

There really isn't a "System" file you can open. System is a namespace that includes alot of different classes. You can browse the System namespace, as well as any other, by opening up the .NET documentation or by going to MSDN.

Oh yea, if you're using Visual Studio.net, go can also open and view all the data in System.dll.

Share this post


Link to post
Share on other sites
or if you're using a handy IDE like i do (borland C# builder), you can just type in the object name and follow it by a '.' (dot)... wait about a sec or so and a scroll box should appread with all of the properties/members/etc available for that object...

Share this post


Link to post
Share on other sites

This topic is 4861 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this