Object the not so primitive primitive types string

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ptions 5 System Namespace System.Object The not-so-primitive "primitive" types String and text classes Dates, times, and calendars System console support Standard interfaces System Namespace Namespaces Example Namespace MyProject { using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; Using System.Data … Public class Form1 : Form … } 6 System Namespace System.Object Base class for each and every type Inheritance from System.Object is typically implicit All simple and complex types share the same base Single base class makes framework consistent Collection classes can be used for everything Intrinsic model for handling variant types Strongly typed--no pointers, no structures Much less error-prone than COM's VARIANT type System.Object is a reference type Value types (internally) inherit from ValueType Special class derived from Object System Namespace System.Object Methods System.Object.Equals(Object o) Test if two types are equal System.Object.ReferenceEquals(Object o) Test if two r...
View Full Document

This note was uploaded on 04/04/2014 for the course CS 5950 taught by Professor Staff during the Summer '08 term at Western Michigan.

Ask a homework question - tutors are online