|
C# for Java Programmers
|
Welcome to C# for Java Programmers. I think you�ll find that this book will be
both enjoyable and challenging at the same time. It will cover Microsoft�s new platform called .NET and the exciting new language for the platform called C#.
According to Microsoft, the C# language is a simple, modern, object-oriented, and
type-safe programming language derived from C and C++. But looking closely, you
can see that C# also has a lot of similarities with Java. Our main goal here is to teach
you the C# language by leveraging your existing Java skills.
I know, I know, you�re probably wondering why you should learn another language when you already know Java and are reasonably comfortable with it.Well, here
are several reasons:
First, it�s from Microsoft.When a big company like Microsoft puts most of
their resources into a new technology it�s hard for developers not to take
notice.This new technology will certainly make an impact in the industry.
As a programmer, C# is a language that will benefit you if it�s add to your
repertoire.With your Java skills, it�ll be a relatively small leap to learn this
new language.Therefore, learning C# will increase your marketability in the
workplace relatively painlessly.
By learning C# and .NET, you�ll have several choices when implementing a
solution for a specific project. For example, you can choose between .NET
and J2EE when it comes to developing XML-based Web services.
It�s arguable that Java lacks the performance needed when it comes to
Windows applications development. C# enables you to develop fast.
Windows applications without having to resort to learning the more complicated C++ language. Not only that,Web Services development is a
breeze, and integration with COM and the Win32 API makes this new language very appealing.
With the same ease of use as Java, and the raw power of C++, I think that you�ll
definitely like what you�ll get from C#.
For those of you who are not expert with Java, I assure you that there is no need
to worry. Knowing Java is not a pre-requisite for this book. Most of the explanations
will be easy enough to follow. However, since we will be drawing a lot of comparisons with Java, you might find the going a little tough at times. If you have a programming background in other languages such as C, or C++, then you have nothing
to worry about.At the end of the book, you�ll probably even learn how to program
Java! Two books for the price of one!
All right, having said all of that, I�m sure that you�re all excited and ready to get
started learning C#. Here are the topics we�ll be covering in the book: First, we�ll
learn Microsoft�s .NET strategy and its significance in the IT industry in Chapter 1.
Then, Chapter 2 will provide an overview of the C# language and all of its features.
This chapter will also teach you how to set up all the different tools you�ll need for
developing C# applications.
We�ll then dive into more specifics. Chapter 3 will focus on the language fundamentals.You�ll learn the basics of the language starting from the Main() method,to
the common type system, and up to expressions and statements. Chapter 4 will go
into the rest of the C# language. It will discuss strings, arrays, and the different types
of program flow controls.Chapter 5 will introduce objects and classes in C#.The
more advanced object-oriented topics such as inheritance and polymorphism will be
covered in Chapter 6.You will also get to see the use of interfaces and inner classes
in this chapter.
In Chapter 7, we�ll learn the rest of the C# features that aren�t available in Java.
In this chapter you�ll find out about structs, enumerators, and some of the syntactical
sugar that C# provides such as properties and indexers. You�ll also get to see operator overloading and the concept of automatic boxing and unboxing. Chapter 8 will
discuss delegates and events, which is C#�s way of dealing with event handling.You�ll
also get to see how you can use delegates for callback functions in this chapter. In
Chapter 9 you will discover C#�s method of application packaging with assemblies.
This chapter will also cover how to add metadata information to your program by
using attributes.
Ko'chirish
|
|
|
|