Welcome to the first installment on a series of I2 volumes dedicated to the latest technology to
hit the third rock from the sun. But before diving in and getting both feet net. u wee bit of
Micrusofl has always had it habit of doing things in style. Whether it was the basic yet robust
Disk Operating System (DOS) or the ljuscr—l‘ricndIy'? ) Windows Operating System. Microsoft has
always managed to rewrite the rules in the computer world. In fact it won’t be exaggeration to say
that today it is thanks to the efforts of Microsoft and the vision of its founder. Bill Gulcs. that it is
soﬁwarc and our machines. that occupy ccmrcstagc. But then that is another story altogether.
Notwithstanding its hegemony over operating systems. it must be said that Microsoft took its time
to wake up to the call of the Internet- Netscape was way ahead in thr: race. and lntcmcl Explorer
was a distant follower. almost nowhere in the reckoning. Even as users had begun to write off
Microsoft as a non-stone: for the web. it has gone and done what he does best mpounced back
with technology that is more culling edge than its peers.
Although. Netscape isn't history as yet. most people would rather use a browser that vmrlm better
with the latest versions of Windows. lnremet Explorer literally chooses itself. Then of course
there are other utility tools like Excel. Word and Pmncr Point - all Microsoftcnncd and near-
And now Microsoft has come out with Microsol1.Nct. a projua until recently culled Microsoft's
Next Generation Windows Services architecture. The objective is the integration of the Internet -
to offer software - like Word and Excel - through your browser on the computer as well as on a
range of devices such as the mobile phone and the personal digital ilssislunl (Palm Pilot etc).
The grand design. as it were. is to change the very natunz of the way people vmrk presently.
Today we generally me one computer per person. Soon. am we shall be using would be only the
lntcmcl. Mr all our needs. In other words. whenever you switch your computer on. you would be
connected directly to the Inremet and not your hard disk for even the most rudimentary of tasks.
The link is enormous: cvcry pucloigc now on offer will nccd udditionul cork tcvcn recoding). In
the new regime. Microsoft has got Visual Studio Net which can enable even the most uninitiated
to design complex websites provided of course one is web and design savvy.
And all of this will be made possible through a new prograrmning language called Cit
When people talk of computer programming languages. that is always a dcbatr: on which one is
better. C++. Java. Perl. PHP3. . . the arguments and counter points can be endless. However. it is
our considered belief that that C# would be in a sense better than the rest. And there is a reason
Normally. whenever it new product is introduced, it hetteis the technologies of its ilk. For existing
technologies evolve with their own pros and cons. Therefore. in I995. when Sun introduced Java.
it took the best from amongst all languages and added current technology. Now Microsoft has
done the same. Its taken the best features from C++ and Java and morphed them into this new
programming language called C0.
Imagine those who worked on Java when it was launched six years ago. Today a CV boasting of
a six-year experience in Java means the maximum possible. Simple arithmetic - Java was
launched only in 95. Similarly. if you get into C! today. only ll Microsoft engineer could have
more working knowledge of it! Therefore, we don't think we need to elaborate further on the
weight that a CV with Cr! exposure would command! Think for yourself. You may know of
people who have struck lucky in getting a job. But when it comes to keeping it. Lady Luck is
Indeed. technology is ruthless. in that. it breaks across all age and seniority Thar‘: the
reason why even a teenager could have as much experience with a new technology as a 40-year-
old. Unfair, but true.
Who should read this hook?
Anyone wanting to be on the cutting edge of new technology. The book is written insuming no
prior programming knowledge on the part of the readers. However. we make certain other
assumptions that we shall explain now.
Many at times, on a clear night when we look up at the stars, we can‘t help but wonder whether
there is intelligent life out there - or are they just like us?
For we dont believe that intellect is a quality that we are born with. In fact we are going to share
a secret with you. It is the secret of success given to us by an old gypsy woman. This magic
mantra has worked with many and we assunic you would also use it in your life. In fact this is the
only assumption we make in this book.
The secret is in persistence - nothing in the world can take place of persistence. Talent will not.
nothing is man: common than unsuccessful people with talent. Genius will not. tinrewrirdcd
genius is almost a proverb. Education will not. the world is full of educated derelicts. Persistence
and determination alone are omnipotent. We hope you agree with the old gypsy apply the maxim
while learning C#.
Now. the mere fact that you are reading this means that you are interested in teaming something
new. However. there is a great deal of difference between a person who wants to read a book and
the person who just wants it book to mad. We hope you belong to the former category.
Though we attempt to infuse a certain degree of humour in our writing. please do not buy this
book for its jokes. ms is no coffee table book or even bedtime reading. This is a book. a
medium. which we hope will do the serious job of teaching the reader a new programming
And how do we propose to go about it‘? Just like when you eat. no matter how delicious the food
in front of you is. you have to consume it. one mouthful at a time. You just cannot eat it all at
once. can you?
Similarly. when leaming. it is ulways bettcr to tailor small steps - one concept at it time.
Sornetiines. we even repeat the same concept several times. in different ways. For we ﬁrmly
believe that if you do the little things well enough. big things will come to you taking to be done.
Incidentally. the entire C8 sollwarc is available on the Microsolt site. downloodable lriac of
charge. Detailed instructions are given on the site along with it set of FAQs.
Well. that's that. We ugrce. it is tough to climb the ladder of success. especially if you're trying to
keep your nose to the grindttonc. your shoulders to the wheel. your eye on the ball and your ear
to the ground. Htecisely the reason why some people do not recognise opportunity - it often
comes disguised as hard work.
This book presents you with precisely such an opportunity. We hope you grab it with both hands!
I wish to thank it number of people who gave in: sqaport. new irbas and
inspiration through the process of writing this book.
First and foremost. thanks to Manish Jail. BPB publication for ptihlishing the book.
Special thanks to my co-atuthurit. Sonul and Sundeep. who have put in their wry best in the work
iuisignod to them its without them and their efforts the book would have never seen the light of
Thanks to my cover designers. Altnf llcmani and Kislurc Ruin. for designing the cover in it
very short notice.
Thanks to Mulsh Puriuhll for putting in ull the time he hurl to vierifying the code with the
explanation. testing all the applications in the book and updated them to work under the Release
vereinn of the product.
To. Pradoep Muklli and Shivlnnnd Shelly. who made it simple for me and my co-authors to
come up with the book.
A long list of friends and my family need it mention here for their patience and cooperation on
this book while it was being written.