Semester: III
Course Code: CAM31T Course Title: C# and .NET Programming
Course Credits: 03 (3-0-0) Hours/Week: 03
Total Contact Hours: 44 Formative Assessment Marks: 20
Exam Marks: 80 Exam Duration: 03
Course Outcomes (COs):
CO1 Understand C# basics, syntax, control statements, arrays, strings.
CO2 Apply OOP concepts like classes, inheritance, and interfaces.
CO3 Use delegates, events, and file I/O in C#.
CO4 Build GUI apps using Windows Forms and ADO.NET.
Course Contents Hours
Unit 1
Introduction: Overview of OOP, Introduction to C # - Characteristics, application,
origins of the .NET technology, the .NET framework, C# program structure,
command line argument, math function, Literals, variable in C#: Declaration,
initialization, constant variables, scope of variables, boxing and unboxing,
Operators, expression in C#, Decision making and looping statements in C#, 11
Methods in C# : declaring methods, methods parameters:output,ref,val,params,
Arrays :Declaration, initialization, variable size arrays, array class, array list class,
String handling: introduction, string library functions.
Unit-2
OOPS with C#: Introduction to Classes & Objects, Constructor: Introduction &
Types, Destructor, Inheritance & types: single level inheritance ,multilevel
inheritance, hierarchical inheritance, containment inheritance, defining a subclass,
visibility control, polymorphism: definition, method overloading, method
overriding, operator overloading: definition, overloadable operators, overloading 11
unary and binary operator, Data Abstraction: hiding methods, abstract classes,
abstract methods, sealed classes, sealed methods, Interfaces: Multiple Inheritance:
defining an interface, extending an interface, implementing interface, abstract class
and interface.
Page 4 of 50
Unit-3
Delegates and Events: Definition, delegate declaration, delegate methods, delegates
instantiation, delegate invocation, multicast delegates, events. Managing Console
I/O operations: console class, console input, console output, formatted output,
11
numeric formatting, standard numeric format, custom numeric format. File
handling: I/O Classes: write files, read files, File streams: file stream classes, File
modes, operations on files
Unit-4
Introducing windows forms: A tale of three GUI namespaces, Anatomy of a Form,
Component class, control class. Programming with windows forms controls:
Working with button types, check boxes, labels Radio buttons, track bar, Progress
bar, Group boxes, list boxes, calendar control, assigning tooltips for controls. Data
access with ADO.NET: Introduction, two faces of ADO.NET, role of ADO.NET data 11
providers, building a simple test database, selecting a data provider, working with
connected layer of ADO.NET & OleDb Data reader, inserting, updating and deleting
records using OleDb command.
Text Books:
1.Programming in C#, E. Balagurusamy,4th or 5th Edition, McGraw Hill Education.
2. C# 9.0 and .NET 5 – Modern Cross-Platform Development, Mark J. Price,6th Edition, Packt
Publishing.
Reference:
1.Pro C# 8 with .NET Core 3, Andrew Troelsen and Philip Japikse, Apress Publications.
2.Head First C#, Andrew Stellman and Jennifer Greene, O’Reilly Media.
3.The Complete Reference C#, Herbert Schildt, McGraw Hill Education.
Page 5 of 50
Course Code: CAM31P Course Title: C#.NET Programming Lab
Course Credits: 02 (0-0-2) Hours/Week: 04
Total Contact Hours: 60 Formative Assessment Marks: 10
Exam Marks: 40 Exam Duration: 03
Course Outcomes (COs):
CO1 Demonstrate C# basics using methods, arrays, and strings.
CO2 Apply OOP concepts like inheritance and overloading in C#.
CO3 Implement delegates, events, and file handling in C#.
CO4 Design Windows Forms and connect databases using ADO.NET.
Laboratory Program List
PART -A
1. Write a C# program to add two numbers using command-line arguments.
2. Write a C# program to demonstrate the use of methods and operators.
3. Write a C# program to demonstrate operations on an ArrayList.
4. Write a C# program to demonstrate string functions.
5. Write a C# program to demonstrate default and parameterized constructors using a
student class.
6. Write a C# program to demonstrate multilevel inheritance using classes Person,
Employee and Manager.
7. Write a C# program to demonstrate method overloading.
8. Write a C# program to overload the + operator to add two objects of a Complex class.
Page 6 of 50
PART-B
1.Write a C# program to implement multicast delegate.
2.Write a C# program to implement an event handler.
3. Write a C# program to demonstrate the operations of numeric formatting types.
4. Write a C# program to write to and read from a text file.
5. Design a Windows Forms application that includes the following controls: a list box,
checkboxes, radio buttons, and image button.
6. Create a Windows Forms application that demonstrates the use of a track bar, progress
bar, group boxes and button.
7. Create a Windows Forms application that includes a calendar control to allow the user to
select a date and display it on a label.
8. Create a Windows Forms application that connects to a test database using ADO.NET with
the OleDb provider. Allow the user to insert new records and display existing data using
a DataGridView.
Evaluation Scheme for Lab Examination
Assessment Criteria Marks Marks
One Program from Part A 15
Writing
One Program from Part B 15
Execution Any one of the Written Program 5
Viva Voce based on C#.NET Programming 5
Total 40
Page 7 of 50