Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
4Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Csharp Programming

Csharp Programming

Ratings:

4.71

(24)
|Views: 1,604 |Likes:
Published by priyanka_avaru
you can also see the blogspot where you can find many more technologies FAQs, e-books,videorecordings, materials etc

Http://itsouptonuts.blogspot.com

http://feeds2.feedburner.com/ItSoupToNuts

Regards,
Sri
you can also see the blogspot where you can find many more technologies FAQs, e-books,videorecordings, materials etc

Http://itsouptonuts.blogspot.com

http://feeds2.feedburner.com/ItSoupToNuts

Regards,
Sri

More info:

Published by: priyanka_avaru on Jan 31, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

12/05/2012

 
Programming in CSharp
byWilli-Hans SteebInternational School for Scientific ComputingandE.J. DembskeyVersion: 2008-08-28email addresses of the authors:
steeb_wh@yahoo.comsteebwilli@gmail.comwhsteeb@uj.ac.zaevan.dembskey@gmail.comdemskeye@tut.ac.za
 
Contents
1 Introduction 12 CSharp Basics 6
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.2 Basic Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82.3 ASCII Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102.4 Arithmetic Operations . . . . . . . . . . . . . . . . . . . . . . . . . . 112.5 Control Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132.6 Logical Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172.7 Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182.8 Recursion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192.9 Jump Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202.10 Pass by Value, Pass by Reference . . . . . . . . . . . . . . . . . . . . 212.11 Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242.12 Bitwise Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272.13 Shift Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282.14 Commmand-Line Arguments . . . . . . . . . . . . . . . . . . . . . . . 292.15 Boxing and UnBoxing Types . . . . . . . . . . . . . . . . . . . . . . . 292.16 Delegates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302.17 Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312.18 Reection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322.19 Generics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3 String and StringBuilder 36
3.1 String Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363.2 Convert Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383.3 StringBuilder Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4 Built-in Classes 41
4.1 DateTime Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414.2 Array Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424.3 ArrayList Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434.4 ListDictionary Class . . . . . . . . . . . . . . . . . . . . . . . . . . . 444.5 Class IEnumerator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454.6 Mathematics Class and Random Class . . . . . . . . . . . . . . . . . 45i
 
4.7 Point Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494.8 Class BitArray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504.9 Object Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5 Object-Oriented Programming 55
5.1 Write your own class . . . . . . . . . . . . . . . . . . . . . . . . . . . 555.2 Override Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605.3 Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625.4 Overloading Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 665.5 Operator Overloading . . . . . . . . . . . . . . . . . . . . . . . . . . . 675.6 Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685.7 Delegates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6 Streams and File Manipulations 74
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 746.2 Binary File Manipulations . . . . . . . . . . . . . . . . . . . . . . . . 746.3 Text File Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . 766.4 Byte by Byte Manipulation . . . . . . . . . . . . . . . . . . . . . . . 796.5 Object Serialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816.6 XML Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7 Graphics 86
7.1 Drawing Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867.2 Color Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897.3 Button and EventHandler . . . . . . . . . . . . . . . . . . . . . . . . 917.4 Displaying Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 937.5 Overriding OnPaint . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8 Events 1009 Processes and Threads 104
9.1 Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1049.2 Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059.2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059.2.2 Background Thread . . . . . . . . . . . . . . . . . . . . . . . . 1069.2.3 Sleep Method . . . . . . . . . . . . . . . . . . . . . . . . . . . 1079.2.4 Join Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 1099.3 Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1109.4 Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1119.5 Deadlock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1139.6 Interlocked Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1159.7 Thread Pooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1169.8 Threading in Windows Forms . . . . . . . . . . . . . . . . . . . . . . 1179.9 Asynchronous Programming Model . . . . . . . . . . . . . . . . . . . 1229.10 Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1239.11 Interrupt and Abort . . . . . . . . . . . . . . . . . . . . . . . . . . . 124ii

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
user1230 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->