Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Teaching With c Sharp

Teaching With c Sharp

Ratings: (0)|Views: 15|Likes:
Published by Kiran Kumar

More info:

Published by: Kiran Kumar on Nov 23, 2010
Copyright:Attribution Non-commercial

Availability:

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

07/08/2013

pdf

text

original

 
Teaching C#
Delivered as part of “Teaching and Learning with Microsoft C# and Rotor"Friday 6th January 2006Rob Miles
 
Contents
Contents...........................................................................................................................................2Introduction..............................................................................................................................4Java and C#......................................................................................................................................4C# History................................................................................................................................5Development Tools..................................................................................................................5C# Language Features......................................................................................................................51. User Input and Output ..............................................................................................................5Teaching Context: User Input and Output...............................................................................5Practical Ideas 1: Simple Console Demo.................................................................................6Practical Ideas 2: Moving Spot................................................................................................62. Value Types .............................................................................................................................6Teaching Context: Value Types and Primitives......................................................................6Structures as values..................................................................................................................7Practical Ideas 1: Value Types.................................................................................................7Teaching Context: Structures...................................................................................................7Practical Ideas 2: Simple Structure..........................................................................................7Practical Ideas 3: Structure with Equals Operator...................................................................8Practical Ideas 4: Arrays of Structures.....................................................................................83. Exception Handling ................................................................................................................. 8Teaching Context: Exception Handling...................................................................................8Practical Ideas 1: Throwing Exceptions..................................................................................9Practical Ideas 2: Try – catch Construction.............................................................................9Practical Ideas 3: Exception Data............................................................................................9Practical Ideas 4: Custom Exceptions......................................................................................94. Reference Parameters ...............................................................................................................9Teaching Context: Reference Parameters..............................................................................10Practical Ideas 1: Reference Parameters................................................................................10Practical Ideas 2: Out Parameters..........................................................................................105. Event Handling and Delegates ...............................................................................................10Teaching Context: Event Handling........................................................................................11Practical Ideas 1: Event Handling in Forms..........................................................................11Practical Ideas 2: Event Handling using the GUI designer....................................................11Teaching Context: Delegates as Objects................................................................................11Practical Ideas 3: Using Delegates to manage behaviours.....................................................116. Program Linking and Deployment .........................................................................................11Teaching Context: Constructing an application.....................................................................12Practical Ideas 1: Simple business objects with test harness.................................................13Practical Ideas 2: Business objects with control classes........................................................137. Properties ............................................................................................................................... 13Teaching Context: The value of properties............................................................................14Practical Ideas 1: Simple business objects with test harness.................................................148. Generics ................................................................................................................................. 15Teaching Context: Generics in the system libraries..............................................................15Practical Ideas 1: Generic List...............................................................................................162
 
Teaching Context: Working with Generics...........................................................................16Practical Ideas 2: Linked List................................................................................................16In Conclusion.................................................................................................................................163

You're Reading a Free Preview

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