0% found this document useful (0 votes)
5 views13 pages

CSharp Coding Notes

C# is a type-safe, object-oriented programming language developed by Microsoft for the .NET framework. It includes features such as basic data types, variables, operators, conditional statements, loops, functions, and object-oriented principles like encapsulation and inheritance. Additionally, it supports exception handling and file operations, making it suitable for Windows and web applications.

Uploaded by

jihoney579
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views13 pages

CSharp Coding Notes

C# is a type-safe, object-oriented programming language developed by Microsoft for the .NET framework. It includes features such as basic data types, variables, operators, conditional statements, loops, functions, and object-oriented principles like encapsulation and inheritance. Additionally, it supports exception handling and file operations, making it suitable for Windows and web applications.

Uploaded by

jihoney579
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Page 1: Introduction to C#

C# is developed by Microsoft for .NET framework.


Page 2: Features

Object-Oriented, Type-safe language.


Page 3: Basic Structure

Main method entry point.

using System;
class P{
static void Main(){
[Link]('Hi');}}
Page 4: Data Types

int, float, string, bool.


Page 5: Variables

Store data values.

int x=10;
Page 6: Operators

Arithmetic, Logical operators.


Page 7: Conditional Statements

if-else, switch.
Page 8: Loops

for, while, foreach.

for(int i=0;i<5;i++){[Link](i);}
Page 9: Functions

Methods in C#.
Page 10: OOP

Encapsulation, Inheritance, Polymorphism.


Page 11: Exception Handling

try-catch-finally.
Page 12: .NET Framework

Used for Windows, Web apps.


Page 13: File Handling

Read and write files in C#.

You might also like