Home   Cover Cover Cover Cover
 

Solutions to the exercises in the book

(H.Mössenböck: C# to the Point, Addison Wesley, 2005)

1. C# and the .NET Framework
  1. Suitability of C# for large-scale software projects
  2. Features of .NET
  3. Security
  4. Interoperability
  5. Assemblies
  6. Internet resources
  7. Mono
2. Getting started
  1. Compiling and executing a program
  2. Working with a development environment
  3. Online documentation
  4. Multi-file programs
  5. Symbols
3. Types
  1. Type system
  2. Primitive types
  3. Enumerations
  4. Enumerations
  5. Arrays
  6. Arrays
  7. Arrays
  8. Strings
  9. StringBuilder
  10. Classes
  11. Structs
  12. Classes versus Structs
4. Expressions
  1. Priority of operators
  2. Result type of expressions
  3. Short-circuit evaluation
  4. Simplifying Boolean expressions
  5. Run-time type information
5. Declarations
  1. Namespaces
  2. Namespaces
  3. Declarations using the same name
  4. Declaration rules
  5. Visibility of names
  6. Inner statement blocks
6. Statements
  1. if statement
  2. switch statement
  3. switch statement
  4. Loop transformations
  5. Search loop
7.Input and output
  1. Removing comments
  2. Formatted output
  3. Formatted output
  4. Formatted input
8. Classes and structs
  1. Structs
  2. Classes
  3. Static variables and methods
  4. Structs and properties
  5. Parameter passing modes
  6. Variable number of parameters
  7. Cross-reference list
9. Inheritance
  1. Access modifiers
  2. Compatibility between classes
  3. Inheritance and constructors
  4. Type cast
  5. Hiding methods
  6. Subclasses
  7. Object-oriented design
  8. Dynamic binding
  9. Abstract classes
  10. Methods of Object
10. Interfaces
  1. Abstract classes and interfaces
  2. Multiple interface inheritance
  3. IComparable interface
  4. IDumpable interface
  5. foreach and interfaces
11. Delegates und Events
  1. Sorting arrays
  2. Trigger
  3. Trapping events in the file system
  4. Delegates with state
12. Exceptions
  1. Using exception handling
  2. Conversion errors
  3. Exceptions when opening a file
  4. User-defined exception classes
  5. Hierarchy of exception classes
  6. finally
13. Namespaces and assemblies
  1. Types with the same name from different namespaces
  2. Namespaces, assemblies, DLLs
  3. Version checking
  4. Security
  5. Strong names
  6. Global assembly cache
  7. Decoding assemblies
14. Threads
  1. Input/output threads
  2. File comparison
  3. Thread synchronization
  4. Dining philosophers
  5. Comparing C# and Java
15. Attributes
  1. Conditional atribute
  2. Serializing
  3. ISerializable
  4. User-defined attributes
16. Documentation Comments
  1. Commenting a class
  2. Formatting comments
17. Interoperability with COM
  1. Microsoft Agent
  2. Calling a .NET program from COM
18. Extract from the .NET class library
  1. Calculating dates
  2. Trigonometry
  3. Minimum distance between points
  4. Normal distribution
  5. Sorted directory
  6. Number sequences
  7. Outputting Windows system variables
  8. Phone book
  9. Counting the frequency of words
  10. Character statistics
  11. Iteration through binary trees
  12. Memory streams
  13. Binary files
  14. Properties of a class
  15. Scripting environment
19. Case studies
  1. Calculator
  2. Web service for a book shop
  3. Web interface using ASP.NET