0% found this document useful (0 votes)
26 views

C Sharp

C# is the native language for the .NET Common Language Runtime (CLR). It provides garbage collection, type safety, and protection against common errors. An object in C# contains related data and functionality, and can inherit properties from a parent class through single inheritance. Programmers must decide how much of an object's data and functionality to encapsulate privately versus expose publicly. The .NET framework includes core namespaces like System for runtime classes, System.Data for database operations, System.Xml for XML, and namespaces for web services, drawing, and rich client interfaces.

Uploaded by

javarocky
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

C Sharp

C# is the native language for the .NET Common Language Runtime (CLR). It provides garbage collection, type safety, and protection against common errors. An object in C# contains related data and functionality, and can inherit properties from a parent class through single inheritance. Programmers must decide how much of an object's data and functionality to encapsulate privately versus expose publicly. The .NET framework includes core namespaces like System for runtime classes, System.Data for database operations, System.Xml for XML, and namespaces for web services, drawing, and rich client interfaces.

Uploaded by

javarocky
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Points:

1) C# is the native language for the .NET Common Language Runtime (CLR).
2) Garbage collection takes the burden of memory management away from the
programmer.
3) C# is type-safe, and it protects against the use of variables that have not been
initialized, unsafe casts, and other common programming errors.
4) You can compile the C# programs using the csc command which will generate an
EXE that you can execute.
5) An object is merely a collection of related information and functionality. An object
contains the data that describes the object and the operations that can be performed on
the object
6) Inheritance is the ability to inherit data and functionality from a parent object. It is an
“is-a” relationship.
7) In the .NET Common Language Runtime (CLR), all objects are inherited from the
ultimate base class named object, and there’s only single inheritance of objects (in
other words, an object can be derived from only one base class). The .NET runtime
allows multiple inheritance in the form of interfaces.
8) The programmer must decide how much of the object is visible to the user and how
much is private within the object. Details that aren’t visible to the user are said to be
encapsulated in the class. The goal when designing an object is to encapsulate as
much of the class as possible. Having more public fields often makes debugging
much tougher.
9) The System namespace contains the core classes for the runtime. This also include
nested namespaces such as Collections, Configuration, Diagnostics, Globalization,
IO, Net, Reflection, Security, ServiceProcess, Text, Threading, Runtime.
10) System.Data namespace contains the classes that support database operations.
11) System.Xml namespace contains classes to manage XML.
12) System.Drawing namespace contains classes that support GDI+, including printing
and imaging.
13) System.Web namespace contains classes for dealing with Web services and classes
for creating Web-based interfaces using ASP.NET.
14) System.Windows.Forms namespace contains classes to create rich-client interfaces.
15)

You might also like