ݺߣ

ݺߣShare a Scribd company logo
C# Tutorial – Part 1 – .NET Basics
‫شارپ‬ ‫سی‬ ‫آموزش‬
–
‫بخش‬
1
–
‫نت‬ ‫دات‬ ‫مبانی‬
https://hosseinzahed.com
hello@hosseinzahed.com
1
Hossein Zahed ‫زاهد‬ ‫حسین‬
-
C# Features & History – ‫شارپ‬ ‫سی‬ ‫تاریخچه‬ ‫و‬ ‫ها‬ ‫ویژگی‬
https://hosseinzahed.com
hello@hosseinzahed.com
2
Feature ‫ویژگی‬
General-purpose ‫منظوره‬ ‫همه‬
Strongly typed ‫ها‬ ‫داده‬ ‫نوع‬ ‫بر‬ ‫مبتنی‬
Multi-paradigm ‫پارادایمی‬ ‫چند‬
Imperative (O.O.P) ‫کد‬ ‫اجرای‬ ‫نحوه‬ ‫بر‬ ‫متمرکز‬
(
‫شود‬ ‫اجرا‬ ‫چگونه‬
)
Declarative (Functional) ‫کد‬ ‫اجرای‬ ‫منطق‬ ‫بر‬ ‫متمرکز‬
(
‫شود‬ ‫اجرا‬ ‫چیزی‬ ‫چه‬
)
Generic ‫وجهی‬ ‫چند‬ ‫کدهای‬ ‫از‬ ‫پشتیبانی‬
Object-oriented ‫گرا‬ ‫شی‬
Component-oriented ‫گرا‬ ‫مؤلفه‬
First release: 2002
Designed by: Anders Hejlsberg
Program Manager: Mads Torgersen
Ownership: Microsoft
‫عرضه‬ ‫اولین‬
:
‫سال‬
1381
‫توسط‬ ‫شده‬ ‫طراحی‬
:
‫اندرس‬
‫هایلزبرگ‬
‫نویسی‬ ‫برنامه‬ ‫مدیر‬
:
‫مدز‬
‫تورگرسن‬
‫مالکیت‬
:
‫مایکروسافت‬
C# Versions – ‫شارپ‬ ‫سی‬ ‫های‬ ‫نسخه‬
Version Release Date
1.0 Apr. 2002
2.0 Nov. 2005
3.0 Nov. 2007
4.0 Apr. 2010
5.0 Aug. 2012
6.0 Jul. 2015
7.0 Mar. 2017
8.0 Sep. 2019
9.0 Nov. 2020
10.0 Nov. 2021
11.0 Nov. 2022
https://hosseinzahed.com
hello@hosseinzahed.com
3
https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history
Roslyn Compiler – ‫رزلین‬ ‫کامپایلر‬
https://hosseinzahed.com
hello@hosseinzahed.com
4
Microsoft Frameworks – ‫مایکروسافت‬ ‫های‬ ‫چهارچوب‬
Title Description
.NET Framework
(v4.8)
.NET Framework is the original implementation of .NET which was developed by Microsoft in the early
2000s to build Web and Desktop applications for Windows. It allows us to write applications in C#,
Visual Basic, and F#. (First release: 2002)
.NET Core
(v7.0)
All aspects of .NET Core are open-source including class libraries, runtime, compilers, languages as well
as application frameworks. .NET Core also supports C#, Visual Basic, and F#. It can run the application
code with the same behavior on multiple architectures, including x64, x86, and ARM. It has a flexible
deployment model in which it can be included in the application or installed side-by-side (user-wide or
system-wide). .NET Core is cross platform and it can also be used with Docker. (First release: 2019)
XAMARIN
(v5.0)
Xamarin extends the .NET developer platform with tools and libraries specifically for building apps for Android,
iOS, tvOS, watchOS, macOS, and Windows.
.NET Standard
(v2.1)
.NET Standard is a specification (not an implementation of .NET) that defines the set of APIs that all
.NET implementations must provide. It addresses the code sharing problem for .NET developers across
all platforms by bringing APIs across different environments. These APIs can be used by both .NET
Framework and .NET Core projects. (First release: 2018)
https://hosseinzahed.com
hello@hosseinzahed.com
5
.NET SDK & Runtime – ‫نت‬ ‫دات‬ ‫کننده‬ ‫اجرا‬ ‫و‬ ‫دهنده‬ ‫توسعه‬
https://hosseinzahed.com
hello@hosseinzahed.com
6
Title Description
.NET SDK (Software Development Kit) ‫اپلیکیشن‬ ‫اجرای‬ ‫و‬ ‫تست‬ ،‫توسعه‬ ،‫پروژه‬ ‫ایجاد‬ ‫برای‬
.NET Runtime ‫اپلیکیشن‬ ‫اجرای‬ ‫برای‬ ‫فقط‬
(
‫سرور‬ ‫روی‬ ‫بر‬
)
https://dotnet.microsoft.com/en-us/download
.NET Family – ‫نت‬ ‫دات‬ ‫خانواده‬
https://hosseinzahed.com
hello@hosseinzahed.com
7
Open Source Projects – ‫باز‬ ‫متن‬ ‫های‬ ‫پروژه‬
https://hosseinzahed.com
hello@hosseinzahed.com
8
Title GitHub Link
Roslyn https://github.com/dotnet/roslyn
.NET SDK https://github.com/dotnet/sdk
.NET Runtime https://github.com/dotnet/runtime
C# Language https://github.com/dotnet/csharplang
ASP.NET Core https://github.com/dotnet/aspnetcore
WPF https://github.com/dotnet/wpf
All dotnet repositories: https://github.com/dotnet
Nuget Packages – ‫نوگت‬ ‫های‬ ‫بسته‬
https://hosseinzahed.com
hello@hosseinzahed.com
9
https://nuget.org
330K packages
266B downloads
.NET Stack – ‫نت‬ ‫دات‬ ‫مجموعه‬
https://hosseinzahed.com
hello@hosseinzahed.com
10
Thank you - ‫سپاس‬
https://hosseinzahed.com
hello@hosseinzahed.com
11

More Related Content

آموزش سی شارپ - بخش 1

  • 1. C# Tutorial – Part 1 – .NET Basics ‫شارپ‬ ‫سی‬ ‫آموزش‬ – ‫بخش‬ 1 – ‫نت‬ ‫دات‬ ‫مبانی‬ https://hosseinzahed.com hello@hosseinzahed.com 1 Hossein Zahed ‫زاهد‬ ‫حسین‬ -
  • 2. C# Features & History – ‫شارپ‬ ‫سی‬ ‫تاریخچه‬ ‫و‬ ‫ها‬ ‫ویژگی‬ https://hosseinzahed.com hello@hosseinzahed.com 2 Feature ‫ویژگی‬ General-purpose ‫منظوره‬ ‫همه‬ Strongly typed ‫ها‬ ‫داده‬ ‫نوع‬ ‫بر‬ ‫مبتنی‬ Multi-paradigm ‫پارادایمی‬ ‫چند‬ Imperative (O.O.P) ‫کد‬ ‫اجرای‬ ‫نحوه‬ ‫بر‬ ‫متمرکز‬ ( ‫شود‬ ‫اجرا‬ ‫چگونه‬ ) Declarative (Functional) ‫کد‬ ‫اجرای‬ ‫منطق‬ ‫بر‬ ‫متمرکز‬ ( ‫شود‬ ‫اجرا‬ ‫چیزی‬ ‫چه‬ ) Generic ‫وجهی‬ ‫چند‬ ‫کدهای‬ ‫از‬ ‫پشتیبانی‬ Object-oriented ‫گرا‬ ‫شی‬ Component-oriented ‫گرا‬ ‫مؤلفه‬ First release: 2002 Designed by: Anders Hejlsberg Program Manager: Mads Torgersen Ownership: Microsoft ‫عرضه‬ ‫اولین‬ : ‫سال‬ 1381 ‫توسط‬ ‫شده‬ ‫طراحی‬ : ‫اندرس‬ ‫هایلزبرگ‬ ‫نویسی‬ ‫برنامه‬ ‫مدیر‬ : ‫مدز‬ ‫تورگرسن‬ ‫مالکیت‬ : ‫مایکروسافت‬
  • 3. C# Versions – ‫شارپ‬ ‫سی‬ ‫های‬ ‫نسخه‬ Version Release Date 1.0 Apr. 2002 2.0 Nov. 2005 3.0 Nov. 2007 4.0 Apr. 2010 5.0 Aug. 2012 6.0 Jul. 2015 7.0 Mar. 2017 8.0 Sep. 2019 9.0 Nov. 2020 10.0 Nov. 2021 11.0 Nov. 2022 https://hosseinzahed.com hello@hosseinzahed.com 3 https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history
  • 4. Roslyn Compiler – ‫رزلین‬ ‫کامپایلر‬ https://hosseinzahed.com hello@hosseinzahed.com 4
  • 5. Microsoft Frameworks – ‫مایکروسافت‬ ‫های‬ ‫چهارچوب‬ Title Description .NET Framework (v4.8) .NET Framework is the original implementation of .NET which was developed by Microsoft in the early 2000s to build Web and Desktop applications for Windows. It allows us to write applications in C#, Visual Basic, and F#. (First release: 2002) .NET Core (v7.0) All aspects of .NET Core are open-source including class libraries, runtime, compilers, languages as well as application frameworks. .NET Core also supports C#, Visual Basic, and F#. It can run the application code with the same behavior on multiple architectures, including x64, x86, and ARM. It has a flexible deployment model in which it can be included in the application or installed side-by-side (user-wide or system-wide). .NET Core is cross platform and it can also be used with Docker. (First release: 2019) XAMARIN (v5.0) Xamarin extends the .NET developer platform with tools and libraries specifically for building apps for Android, iOS, tvOS, watchOS, macOS, and Windows. .NET Standard (v2.1) .NET Standard is a specification (not an implementation of .NET) that defines the set of APIs that all .NET implementations must provide. It addresses the code sharing problem for .NET developers across all platforms by bringing APIs across different environments. These APIs can be used by both .NET Framework and .NET Core projects. (First release: 2018) https://hosseinzahed.com hello@hosseinzahed.com 5
  • 6. .NET SDK & Runtime – ‫نت‬ ‫دات‬ ‫کننده‬ ‫اجرا‬ ‫و‬ ‫دهنده‬ ‫توسعه‬ https://hosseinzahed.com hello@hosseinzahed.com 6 Title Description .NET SDK (Software Development Kit) ‫اپلیکیشن‬ ‫اجرای‬ ‫و‬ ‫تست‬ ،‫توسعه‬ ،‫پروژه‬ ‫ایجاد‬ ‫برای‬ .NET Runtime ‫اپلیکیشن‬ ‫اجرای‬ ‫برای‬ ‫فقط‬ ( ‫سرور‬ ‫روی‬ ‫بر‬ ) https://dotnet.microsoft.com/en-us/download
  • 7. .NET Family – ‫نت‬ ‫دات‬ ‫خانواده‬ https://hosseinzahed.com hello@hosseinzahed.com 7
  • 8. Open Source Projects – ‫باز‬ ‫متن‬ ‫های‬ ‫پروژه‬ https://hosseinzahed.com hello@hosseinzahed.com 8 Title GitHub Link Roslyn https://github.com/dotnet/roslyn .NET SDK https://github.com/dotnet/sdk .NET Runtime https://github.com/dotnet/runtime C# Language https://github.com/dotnet/csharplang ASP.NET Core https://github.com/dotnet/aspnetcore WPF https://github.com/dotnet/wpf All dotnet repositories: https://github.com/dotnet
  • 9. Nuget Packages – ‫نوگت‬ ‫های‬ ‫بسته‬ https://hosseinzahed.com hello@hosseinzahed.com 9 https://nuget.org 330K packages 266B downloads
  • 10. .NET Stack – ‫نت‬ ‫دات‬ ‫مجموعه‬ https://hosseinzahed.com hello@hosseinzahed.com 10
  • 11. Thank you - ‫سپاس‬ https://hosseinzahed.com hello@hosseinzahed.com 11