Monday, October 10, 2011

C# chapter-1 introduction.


What is c#?
C#-pronounced as c sharp-is specially created for Dot net.
It is an object oriented language.
It is a modern language
It is easy to learn
It is  based on c,c++ languages.
It produces Efficient program
It contains simplicity of vb, powerful of c++, and elegance of java.


What is.NET?

After the invention of internet java was introduced to create web oriented applications. Java was also a successful one. There is no web language for  Microsoft. Then it  introduced web concepts in vb6. It was a failure. So Microsoft introduced dot-net.
Java creators tell like this
“write once in java and run anywhere”
It means java is a portable language. If you write a java program you can run it on any platform with out change. But you can write in any language in dot-net. Yes ,dot-net supports many languages such as c#,vb,c++ and COBOL.
You can write any language in dot-net. First they are compiled and changed in MSIL(Microsoft intermediate language. Then jit compiler runs the il.the il is not like Microsoft java’s class file. You can not read java’s class files. But MSIL  is a separate language. There are even books for MSIL.

Which languages are supported by .NET?
C#
C++
Visual basic
Jscript
And it also supports third party languages like
Cobol
Eiffel
Perl
Phython
Small talk
Mercury.


1.       Simple
2.       Speed
3.       Contains a lot of library classes. Common to all languages.
4.       Installation is easy
5.       Low exceptions. 


 what type of applications can be created using .NET?

.NET can be used to creating different type of application. Also a .NET solution can consists of projects written in different languages. For example a vb.net project  can contain a data access component written in c#. This is possible because of inter operability of .NET between projects.

What are Console applications?


Console applications means graphics less applications. Only character will be present. The following statement is the entry point of console applications.
Public static void Main(String args)
The project uses Read,ReadLine, Write,WriteLine methods present in the system.console class.


 what are windows applications?

Example for windows application is ms-word. Normally it contain graphics as icon. We may run any commands by just clicking on the icon..Net can be used for creating such applications.
what are windows controls ?
A windows controls can be created using base controls in toolbox. If you have studied active x control creating using vb6 or vc++ it will be very useful to start learning on creating windows controls in .net.
what are web projects?
Web sites can be created using asp.net the server side asp.net engine will convert the asp.net codes in to pure HTML codes. The browser will execute the HTML code and display  website.Asp.net is used to create interactive, dynamic web sites.
what are Web services
The web services provide information to other web sites. For examples a website can get information such as climate, business news from web services. The main aim of the .Net is providing the software as services.



C# and dot-net.
 C# is a language invented specially  for dot-net. Dot-net developers always choose c# language for their programs. C# 4.0 is the recent version c#

No comments:

Post a Comment