SlideShare a Scribd company logo
Intoduction to c# and basics of .net
*Introduce C# language
*ECMA standard
*originally developed by MSR
*not just Java + C++
*many extensions
*Introduce .NET framework
*future of Windows
*base of Microsoft’s C# implementation
*Teach you to program
*should be very comfortable writing OO code
*we will not cover much if any basic programming
*Introduce object oriented languages
*not even teach you OO style (except wrt C#)
*expected to write all code in OO style
*Give you a detailed grade
*S/U only
*even homework
*Requirements for the course
*come to lecture
*participate
*do three assignments
*Assignments are S/U
*will not be giving a detailed grade
*show me that you understand the concepts, and can
write C# code
*All three assignments will be online soon
*must be completed by the end of the course
*Class time MWF 12:20-1:10
*office hours: W 10:30-12 or by appointment
*tmroeder@cs.cornell.edu (4112 Upson)
*Prerequisites: CS 211/212
*really: experience in OO coding/concepts
*Academic Integrity
*Do not submit work that is not your own
*minimum penalty: U in the course
*Visual C#
*Express: Google “Visual C# Express”
*in Visual Studio: MSDNAA
*must be version 2005: we need C# 2.0
*Mono: http://www.go-mono.com
*Open Source impl for Linux: not quite at 2.0
*Rotor: http://msdn.microsoft.com/net/sscli
*Shared Source impl for Windows (through 2.0)
*Used to work on BSD / OS X, too
*Portable.NET: http://www.dotgnu.org
*yet another open source impl
*CMS: http://cms.csuglab.cornell.edu
*we will use this for homework
*turn on your email notifications!
*Course Webpage:
http://www.cs.cornell.edu/courses/cs215
*will post lectures online
*as well as any errata for the homework
*You all will have accounts
*MSDNAA access: let me know if you don’t
currently have it
*http://www.csuglab.cornell.edu/userinfo.html
*Visual Studio .NET 2005 should be installed there
*You all will have accounts
*MSDNAA access: let me know if you don’t
currently have it
*http://www.csuglab.cornell.edu/userinfo.html
*Visual Studio .NET 2005 should be installed there
*Syllabus (10 more lectures)
*C# constructs: 5 lectures
*Types, Delegates, Generics,
Reflection, Iterators
*.NET Memory Management: 1 lecture
*Topics: 4 lectures
*C# 3.0, Threading, Security, MSIL,
MSH
*Each class will begin with a quiz
*not for credit but for knowledge
*but I will collect them and see what you know
*Today’s quiz will be on prerequisites
*OO programming, mainly to do with Java
*If you don’t know Java, but do have OO
experience, it’s OK
*talk to me after if you have trouble
*A Framework in which to run code
*A Common Language Runtime (CLR)
*runs all programs
*C# compiles to Microsoft Intermediate Language
*MSIL runs on CLR
*Virtual Machine like Java
*code written in many languages compiles to MSIL
*A Common Language Specification (CLS)
*A Common Type System (CTS)
Runtime
Operating System
.NET Framework
Common
Type
System
Common
Language
Runtime
Building Blocks (e.g. for Services)
Services: .NET and COM+
SQL Server BizTalk ...
Languages:
C#, Visual Basic, etc
.NET Applications
Enterprise Servers
...Sharepoint ...
Web Services
Class Loader
MSIL to Native
Compilers (JIT)
Code
Manager
Garbage
Collector (GC)
Security Engine Debug Engine
Type Checker Exception Manager
Thread Support COM Marshaler
Base Class Library Support
*A set of common types
*any language that runs in CLR should implement
*no syntax specified
*Languages often define aliases
*For example
*CTS defines System.Int32 – 4 byte integer
*C# defines int as an alias of System.Int32
www.thinkittraining.in
9566182378
Ad

More Related Content

Similar to Intoduction to c# and basics of .net (20)

C#.net
C#.netC#.net
C#.net
AllsoftSolutions
 
C# lecture 1: Introduction to Dot Net Framework
C# lecture 1: Introduction to Dot Net FrameworkC# lecture 1: Introduction to Dot Net Framework
C# lecture 1: Introduction to Dot Net Framework
Dr.Neeraj Kumar Pandey
 
LECTURE 1 - Introduction to Programming.pptx
LECTURE 1 - Introduction to Programming.pptxLECTURE 1 - Introduction to Programming.pptx
LECTURE 1 - Introduction to Programming.pptx
AOmaAli
 
Selenium web driver_2.0_presentation
Selenium web driver_2.0_presentationSelenium web driver_2.0_presentation
Selenium web driver_2.0_presentation
sayhi2sudarshan
 
C#.NET
C#.NETC#.NET
C#.NET
gurchet
 
The windows socket
The windows socketThe windows socket
The windows socket
Fernando Grille
 
Test Driven Development (TDD) with Windows PowerShell
Test Driven Development (TDD) with Windows PowerShellTest Driven Development (TDD) with Windows PowerShell
Test Driven Development (TDD) with Windows PowerShell
Hemmerling
 
01. introduction to-programming
01. introduction to-programming01. introduction to-programming
01. introduction to-programming
Stoian Kirov
 
Structure of a C# Program
Structure of a C# ProgramStructure of a C# Program
Structure of a C# Program
Ali Hassan
 
Intake 37 1
Intake 37 1Intake 37 1
Intake 37 1
Mahmoud Ouf
 
ASP.NET
ASP.NETASP.NET
ASP.NET
Chandan Gupta Bhagat
 
Part i
Part iPart i
Part i
Mohamed Ebrahim
 
01. Introduction to Programming
01. Introduction to Programming01. Introduction to Programming
01. Introduction to Programming
Intro C# Book
 
Linux Developing Stack
Linux Developing StackLinux Developing Stack
Linux Developing Stack
Vicente Bolea
 
ASP.NET Session 3
ASP.NET Session 3ASP.NET Session 3
ASP.NET Session 3
Sisir Ghosh
 
What Visual Studio Code can do for Java Development
What Visual Studio Code can do for Java DevelopmentWhat Visual Studio Code can do for Java Development
What Visual Studio Code can do for Java Development
Ed Burns
 
Resume
ResumeResume
Resume
Muhammad Waseem
 
Top 10 Differences between developing Windows Phone and Store apps
Top 10 Differences between developing Windows Phone and Store appsTop 10 Differences between developing Windows Phone and Store apps
Top 10 Differences between developing Windows Phone and Store apps
Morten Nielsen
 
Programming
ProgrammingProgramming
Programming
mafffffe19
 
Advanced Web Programming_UNIT_1_NewSyllabus.pdf
Advanced Web Programming_UNIT_1_NewSyllabus.pdfAdvanced Web Programming_UNIT_1_NewSyllabus.pdf
Advanced Web Programming_UNIT_1_NewSyllabus.pdf
ansariparveen06
 
C# lecture 1: Introduction to Dot Net Framework
C# lecture 1: Introduction to Dot Net FrameworkC# lecture 1: Introduction to Dot Net Framework
C# lecture 1: Introduction to Dot Net Framework
Dr.Neeraj Kumar Pandey
 
LECTURE 1 - Introduction to Programming.pptx
LECTURE 1 - Introduction to Programming.pptxLECTURE 1 - Introduction to Programming.pptx
LECTURE 1 - Introduction to Programming.pptx
AOmaAli
 
Selenium web driver_2.0_presentation
Selenium web driver_2.0_presentationSelenium web driver_2.0_presentation
Selenium web driver_2.0_presentation
sayhi2sudarshan
 
Test Driven Development (TDD) with Windows PowerShell
Test Driven Development (TDD) with Windows PowerShellTest Driven Development (TDD) with Windows PowerShell
Test Driven Development (TDD) with Windows PowerShell
Hemmerling
 
01. introduction to-programming
01. introduction to-programming01. introduction to-programming
01. introduction to-programming
Stoian Kirov
 
Structure of a C# Program
Structure of a C# ProgramStructure of a C# Program
Structure of a C# Program
Ali Hassan
 
01. Introduction to Programming
01. Introduction to Programming01. Introduction to Programming
01. Introduction to Programming
Intro C# Book
 
Linux Developing Stack
Linux Developing StackLinux Developing Stack
Linux Developing Stack
Vicente Bolea
 
ASP.NET Session 3
ASP.NET Session 3ASP.NET Session 3
ASP.NET Session 3
Sisir Ghosh
 
What Visual Studio Code can do for Java Development
What Visual Studio Code can do for Java DevelopmentWhat Visual Studio Code can do for Java Development
What Visual Studio Code can do for Java Development
Ed Burns
 
Top 10 Differences between developing Windows Phone and Store apps
Top 10 Differences between developing Windows Phone and Store appsTop 10 Differences between developing Windows Phone and Store apps
Top 10 Differences between developing Windows Phone and Store apps
Morten Nielsen
 
Advanced Web Programming_UNIT_1_NewSyllabus.pdf
Advanced Web Programming_UNIT_1_NewSyllabus.pdfAdvanced Web Programming_UNIT_1_NewSyllabus.pdf
Advanced Web Programming_UNIT_1_NewSyllabus.pdf
ansariparveen06
 

Recently uploaded (20)

Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Ad

Intoduction to c# and basics of .net

  • 2. *Introduce C# language *ECMA standard *originally developed by MSR *not just Java + C++ *many extensions *Introduce .NET framework *future of Windows *base of Microsoft’s C# implementation
  • 3. *Teach you to program *should be very comfortable writing OO code *we will not cover much if any basic programming *Introduce object oriented languages *not even teach you OO style (except wrt C#) *expected to write all code in OO style *Give you a detailed grade *S/U only *even homework
  • 4. *Requirements for the course *come to lecture *participate *do three assignments *Assignments are S/U *will not be giving a detailed grade *show me that you understand the concepts, and can write C# code *All three assignments will be online soon *must be completed by the end of the course
  • 5. *Class time MWF 12:20-1:10 *office hours: W 10:30-12 or by appointment *[email protected] (4112 Upson) *Prerequisites: CS 211/212 *really: experience in OO coding/concepts *Academic Integrity *Do not submit work that is not your own *minimum penalty: U in the course
  • 6. *Visual C# *Express: Google “Visual C# Express” *in Visual Studio: MSDNAA *must be version 2005: we need C# 2.0 *Mono: http://www.go-mono.com *Open Source impl for Linux: not quite at 2.0 *Rotor: http://msdn.microsoft.com/net/sscli *Shared Source impl for Windows (through 2.0) *Used to work on BSD / OS X, too
  • 7. *Portable.NET: http://www.dotgnu.org *yet another open source impl *CMS: http://cms.csuglab.cornell.edu *we will use this for homework *turn on your email notifications! *Course Webpage: http://www.cs.cornell.edu/courses/cs215 *will post lectures online *as well as any errata for the homework
  • 8. *You all will have accounts *MSDNAA access: let me know if you don’t currently have it *http://www.csuglab.cornell.edu/userinfo.html *Visual Studio .NET 2005 should be installed there
  • 9. *You all will have accounts *MSDNAA access: let me know if you don’t currently have it *http://www.csuglab.cornell.edu/userinfo.html *Visual Studio .NET 2005 should be installed there
  • 10. *Syllabus (10 more lectures) *C# constructs: 5 lectures *Types, Delegates, Generics, Reflection, Iterators *.NET Memory Management: 1 lecture *Topics: 4 lectures *C# 3.0, Threading, Security, MSIL, MSH
  • 11. *Each class will begin with a quiz *not for credit but for knowledge *but I will collect them and see what you know *Today’s quiz will be on prerequisites *OO programming, mainly to do with Java *If you don’t know Java, but do have OO experience, it’s OK *talk to me after if you have trouble
  • 12. *A Framework in which to run code *A Common Language Runtime (CLR) *runs all programs *C# compiles to Microsoft Intermediate Language *MSIL runs on CLR *Virtual Machine like Java *code written in many languages compiles to MSIL *A Common Language Specification (CLS) *A Common Type System (CTS)
  • 13. Runtime Operating System .NET Framework Common Type System Common Language Runtime Building Blocks (e.g. for Services) Services: .NET and COM+ SQL Server BizTalk ... Languages: C#, Visual Basic, etc .NET Applications Enterprise Servers ...Sharepoint ... Web Services
  • 14. Class Loader MSIL to Native Compilers (JIT) Code Manager Garbage Collector (GC) Security Engine Debug Engine Type Checker Exception Manager Thread Support COM Marshaler Base Class Library Support
  • 15. *A set of common types *any language that runs in CLR should implement *no syntax specified *Languages often define aliases *For example *CTS defines System.Int32 – 4 byte integer *C# defines int as an alias of System.Int32