0% found this document useful (0 votes)
53 views

1 NPL Introduction

The document provides an introduction to .NET programming and the C# language. It discusses the .NET framework, Common Language Runtime, .NET Core, and differences between .NET Core and .NET Framework. It also introduces the C# programming language and its features and benefits. Finally, it discusses Visual Studio as an integrated development environment for building .NET and C# applications.

Uploaded by

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

1 NPL Introduction

The document provides an introduction to .NET programming and the C# language. It discusses the .NET framework, Common Language Runtime, .NET Core, and differences between .NET Core and .NET Framework. It also introduces the C# programming language and its features and benefits. Finally, it discusses Visual Studio as an integrated development environment for building .NET and C# applications.

Uploaded by

binhkatekun2002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 31

.

NET Programming
Language
.NET Introduction

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use


Agenda

1. .NET Introduction

2. C# Programming Language Introduction

3. Visual Studio

4. First program in C# with Visual Studio

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 2


Lesson Objectives

This is a sample text that you can edit.


01 .NET IntroductionYou can change font(size, color, name),
or apply any desired formatting.

C# Programming Language Introduction


02
Create first program in C# with Visual Studio
03  Structure of C# program
 Basic IO inThis
C#isprogram
a sample text that you can edit.
03 You can change font(size, color, name),
or apply any desired formatting.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 3


Section 1

.NET Introduction

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 4


.NET Introduction
 .NET is a free, cross-platform, open-source developer platform for building
many kinds of applications. .NET is built on a high-performance runtime
that is used in production by many high-scale apps.
 Cloud apps
 Cross-platform client apps
 Windows apps

 .NET apps and libraries are built from source code and a project file, using
the .NET CLI or an Integrated Development Environment (IDE) like
Visual Studio.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 5


Common Language Runtime
 The Common Language Runtime (CLR) is the foundation all .NET apps are
built on. The fundamental features of the runtime are:
 Garbage collection.
 Memory safety and type safety.
 High-level support for programming languages.
 Cross-platform design.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 6


Common Language Runtime

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 7


.NET Core version history
Version Release date Released with Latest update Latest update date Support ends[23]

Visual Studio 2015


.NET Core 1.0 2016-06-27 1.0.16 May 14, 2019 June 27, 2019
Update 3
Visual Studio 2017
.NET Core 1.1 2016-11-16 1.1.13 May 14, 2019 June 27, 2019
Version 15.0
Visual Studio 2017
.NET Core 2.0 2017-08-14 2.0.9 July 10, 2018 October 1, 2018
Version 15.3
Visual Studio 2017
.NET Core 2.1 2018-05-30 2.1.30 (LTS) August 19, 2021 August 21, 2021
Version 15.7
Visual Studio 2019
.NET Core 2.2 2018-12-04 2.2.8 November 19, 2019 December 23, 2019
Version 16.0
Visual Studio 2019
.NET Core 3.0 2019-09-23 3.0.3 February 18, 2020 March 3, 2020
Version 16.3
Visual Studio 2019
.NET Core 3.1 2019-12-03 3.1.32 (LTS) December 13, 2022 December 13, 2022
Version 16.4
Visual Studio 2019
.NET 5 2020-11-10 5.0.17 May 10, 2022 May 10, 2022
Version 16.8
Visual Studio 2022
.NET 6 2021-11-08 6.0.11 (LTS) November 8, 2022 November 12, 2024
Version 17.0
Visual Studio 2022
.NET 7 2022-11-08 7.0.1 December 13, 2022 May 14, 2024
Version 17.4
November 2026
.NET 8 2023-11 (projected) (will be LTS)
(projected

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 8


.NET Core
 .NET Core is NOT new version of .NET Framework

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 9


.NET Core
 Create cross platforms application.
 Can use Microservices
 Deploy an application to Dockers container.
 Create highly scalable and performable system.
 Create ASP.Net Core, Razor page, UMP, Mobile native app and Blazor
application.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 10


.NET Core vs .NET Framework

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 11


.NET Standard

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 12


Section 2

C# Programming Language
Introduction

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 13


Using .NET Core
 A programmer can develop applications using one of the languages
supported by .NET.
 C#
 VB
 These applications make use of the base class libraries provided by
the .NET Core.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 14


C# programming language
 C# was developed to:
 Create a very simple and yet powerful tool for building interoperable, scalable, and
robust applications.
 Create a complete object-oriented architecture.
 Support powerful component-oriented development.
 Allow access to many features previously available only in C++ while retaining the
ease-of-use of a rapid application development tool such as Visual Basic.
 Provide familiarity to programmers coming from C or C++ background.
 Allow to write applications that target both desktop and mobile devices.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 15


C# programming language
 C# is a programming language designed for building a wide range of
applications that run on the .NET Core.
 C# was developed within the .NET framework initiative
 C# was designed by Anders Hejlsberg

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 16


C#: from code to music
 C# is a programming language designed for building a wide range of applications
that run on the .NET Core.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 17


Simple
Fast speed

Modern
Rich Library programming
language

Scalable and Object


Updateable oriented

Type safe

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 18


Section 3

Visual Studio

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 19


Integrated Development Environment
 Syntax highlighting
 Code completion
 Refactoring
 Version control
 Debugging
 Code search
 Visual programming
 Language support

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 20


Visual Studio
Develop
• Navigate, write, and fix
your code fast

Extend
• Choose from Debug
thousands of • Debug, profile, and
extensions to diagnose with ease
customize your IDE

Collaborate Test
• Write high-quality
• Use version control,
code with
be agile, collaborate
comprehensive
efficiently
testing tools

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 21


C# Version History

Version .NET Framework Visual Studio


C# 1.0 .NET Framework 1.0/1.1 Visual Studio .NET 2002
C# 2.0 .NET Framework 2.0 Visual Studio 2005
C# 3.0 .NET Framework 3.0\3.5 Visual Studio 2008
C# 4.0 .NET Framework 4.0 Visual Studio 2010
C# 5.0 .NET Framework 4.5 Visual Studio 2012/2013
C# 6.0 .NET Framework 4.6 Visual Studio 2013/2015
C# 7.0 .NET Core 2.0 Visual Studio 2017
C# 8.0 .NET Core 3.0 Visual Studio 2019
C# 9.0 .NET 5.0 Visual Studio 2019
C# 10.0 .NET 6.0 Visual Studio 2022

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 22


Section 3

First program in C# with Visual Studio

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 23


Hello World
 Create Hello World console application in Visual Studio
 Write first code
 Visual Studio windows
 Run application and check result

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 24


Input and Output
 Programmers often need to display the output of a C#
program to users.
 The programmer can use the command line interface
to display the output.
 The programmer can similarly accept inputs from a
user through the command line interface.
 Such input and output operations are also known as
console operations.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 25


Console Operations
Console operations are tasks performed on the command line interface using
executable commands.

The console operations are used in software applications because these operations
are easily controlled by the operating system.

This is because console operations are dependent on the input and output devices of
the computer system.

A console application is one that performs operations at the command prompt.

All console applications consist of three streams, which are a series of bytes. These
streams are attached to the input and output devices of the computer system and
they handle the input and output operations.

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 26


Console Operations

• The standard in stream takes the input and passes it to


the console application for processing.
Standard in

• The standard out stream displays the output on the


monitor.
Standard out

• The standard err stream displays error messages on


the monitor.
Standard err

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 27


Basic I/O
 Console.Write command:
 Writes the text representation of the specified value or values to the standard output
stream

 Console.WriteLine command:
 Writes the specified data, followed by the current line terminator, to the standard
output stream

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 28


Basic I/O
 Console.Read command:
 Reads the next character from the standard input stream.

 Console.ReadKey command:
 Obtains the next character or function key pressed by the user

 Console.ReadLine command:
 Reads the next line of characters from the standard input stream.
 Finish input when user press the Enter key
 Also used to pause screen

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 29


Lesson Summary

Microsoft .NET Core


C# programming language
Visual Studio
Create a first project: Hello World
Basic I/O

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use 30


THANK YOU!

09e-BM/DT/FSOFT - @FPT SOFTWARE - FPT Software Academy - Internal Use

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy