Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Chapter 1 - Introduction
Salient Features of C#
1. Object-Oriented Language
2. Strongly Types
3. Automatic Garbage Collection
4. Easy to Learn
5. Application Range
6. Part of Visual Studio
7. Huge Developer Community
Environment Setup
Running Your First Program
Conclusion
Chapter 2 – Variables and Data Types
Variable
Data Types
1. Numeric Types
2. Boolean Type
3. Char Type
4. String Type
5. Objects
Conclusion
Chapter 3 - C# Operators
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Assignment Operators
Conclusion
Chapter 4 –Getting User Input and Console Output
Console Window
Printing Data on Console
Getting User Input
Conclusion
Chapter 5 – Conditional Statements in C#
If statement
If-else Statement
Switch Statements
Conclusion
Chapter 6 – Iteration Statements
The for loop
The while loop
The do-while loop
The break Statement
The continue Statement
Conclusion
Chapter 7 – Arrays in C#
Creating an Array
Accessing Array Elements
Traversing Arrays with the for Loop
Traversing Arrays with foreach loop
Multidimensional Arrays
Conclusion
Chapter 8 – Functions in C#
Declaring a Function
Calling a Function
Non-Static Function
Parameterized Methods
Returning Values from a Function
Passing Variable By Reference and By Value
Passing by Value
Passing by Reference
Conclusion
Chapter 9 – Object Oriented Programming in C#
Advantages of OOP
• Reusability
• Modular Approach
• Maintainability
• Easy Debugging
• Security
A Class
An Object
Accessing Members and Methods using Objects
The Constructor
Parameterized Constructor
Constructor Overloading
Conclusion
Chapter 10 – Inheritance in C#
Inheritance: A Simple Example
Multiple Inheritance
Calling Parent Class Constructor from Children Classes
Conclusion
Chapter 11 – Polymorphism and Encapsulation in C#
Polymorphism
Polymorphism via Method Overloading
Polymorphism via Method Overriding
Polymorphism by Overriding: An Example
Encapsulation in Python
Encapsulation via Customized Methods
Encapsulation via Properties
Conclusion
Chapter 12 – Exception Handling in C#
Compile Time Errors
Runtime Errors (Exceptions)
How Exceptions are handled
Conclusion
Chapter 13 – String Manipulation in C#
Creating a String
Using Single and Double Quotes
String Concatenation
Converting String to Lowercase and Uppercase
Finding Substring
Splitting Strings
Replacing a String
Finding String Length
Conclusion
Chapter 14 – File Handling in C#
Reading a File
ReadAllText()
ReadAllLines()
ReadLines()
Writing Data to File
WriteAllText()
WriteAllLines()
AppendAllText()
AppendAllLines()
Creating a File
Deleting a File
Conclusion
Chapter 15 – Collections in C#
What are Collections?
ArrayList
Creating an ArrayList
Adding Elements to an ArrayList
Removing Elements from an ArrayList
Accessing Elements from an ArrayList
Reversing and Sorting an ArrayList
SortedList
Creating a SortedList
Adding Elements to a SortedList
Accessing Elements in a SortedList
Removing Elements from SortedList
Stack
Creating a Stack
Adding Elements to a Stack
Accessing Elements from a Stack
Clearing the Stack
Queue
Creating a Queue
Adding Elements to a Queue
Accessing Elements from Queue
Clearing a Queue
Checking if Queue Contains an Element
Conclusion
Sign up for William Sullivan's Mailing List
About the Author
← Prev
Back
Next →
← Prev
Back
Next →