SlideShare a Scribd company logo
1 of 53
Summary of the Last Lecture ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
“ Hello World” Program ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
HelloWorld. cs  program’s Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],comment using namespaces namespace declaration class declaration Main method statements
C# Program’s Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
C# Program’s Structure ,[object Object],[object Object],[object Object],[object Object],[object Object]
C# Program’s Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
C# Program’s Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
.NET Framework Class Library (FCL) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],namespace type
.NET Framework Class Library (FCL) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
C# command-line compiler: csc.exe
What is an Assembly? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is in an Assembly? ,[object Object],[object Object],[object Object],[object Object]
.NET Tool: ildasm.exe ,[object Object]
Syntax Errors ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Comments ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Literals ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Identifiers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Console Output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],The  Write  method does not move the cursor to a new line after displaying its argument.
Console Output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Console Output ,[object Object],[object Object],Common Escape Sequences Description   Newline. Positions the screen cursor at the beginning of the next line.   Horizontal tab. Moves the screen cursor to the next tab stop.   Carriage return. Positions the screen cursor at the beginning of the current line—does not advance the cursor to the next line.    Backslash. Used to place a backslash character in a string.   Double quote. Console.Write(  "amp;quot;in quotesamp;quot;"  ); displays "in quotes"
Console Output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Method  WriteLine ’s first argument is a  format string  that may consist of  fixed text  and  format items .
Keywords (reserved words) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Variables ,[object Object]
Example Program: Addition ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Variables ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Variables ,[object Object],[object Object],[object Object],[object Object]
Console Input  ,[object Object],[object Object],[object Object],[object Object]
Assignment Operator ,[object Object],[object Object],[object Object],[object Object],Good Programming Practice Place spaces on either side of a binary operator to make it stand out and make the code more readable.
Expression ,[object Object],[object Object],[object Object],[object Object]
Memory Concepts  ,[object Object],[object Object],[object Object]
Memory Concepts (Cont.)  ,[object Object],[object Object]
Data Types ,[object Object],[object Object],[object Object],[object Object]
Value vs Reference Types number1 42 int    number1 = 42; string  name = “Gulsen Demiroz”; int    number2 = number1; string  text  =  name ; name Gulsen Demiroz number2 42 name
Reference Types ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],myObj null name ,[object Object],[object Object],[object Object],[object Object],[object Object],Gulsen
Value Types Type System namespace Definition Uninitialized value short System.Int16 16 bit signed integer 0 int System.Int32 32 bit signed integer 0 long System.Int64 64 bit signed integer 0 ushort System.UInt16 16 bit unsigned integer 0 uint System.UInt32 32 bit unsigned integer 0 ulong System.UInt64 64 bit unsigned integer 0 float System.Single 32 bit real number 0.0 double System.Double 64 bit real number 0.0 decimal System.Decimal 128 bit real number 0 bool System.Boolean true or false false char System.Char 16 bit Unicode character ‘ ’ byte System.Byte 8 bit unsigned integer 0 sbyte System.SByte 8 bit signed integer 0 enum user-defined defines a type for a closed set 0 index value struct user-defined defines a compound type that consists of other types assumed value types, null reference types
.NET Common Type System ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Boxing and Unboxing ,[object Object],[object Object],[object Object]
Boxing ,[object Object],[object Object],i 42 o int i | 42
Unboxing ,[object Object],[object Object],[object Object],i 42 o int i | 42 j 42
Casting Between Types ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],0 0 0 1 0 1 0 0  0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0  0 0 0 1 0 1 0 0  0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0
Valid Implicit Castings Type Types It Can Be Converted To sbyte short,int,float,long,double,decimal byte short,ushort,int,uint, long,ulong,float,double,decimal short int,long,float,double,decimal ushort int,uint,long,ulong,float,double,decimal int long,float,double,decimal uint long,ulong,float,double,decimal long, ulong float,double,decimal char float,double,decimal float double
Explicit Casting ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0  0 0 0 0 0 0 0  1   0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0
checked  &  unchecked ,[object Object],[object Object],[object Object]
Convert.ToInt32 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Convert  class Method Convert.ToBoolean(string str)  converts  string str  to bool Convert.ToByte(string str)  converts  string str  to byte Convert.ToSByte(string str)  converts  string str  to signed byte Convert.ToInt16(string str)  converts  string str  to short Convert.ToUInt16(string str)  converts  string str  to unsigned short Convert.ToInt32(string str)  converts  string str  to integer Convert.To U Int32(string str)  converts  string str  to unsigned integer Convert.ToInt64(string str)  converts  string str  to long Convert.ToSingle(string str)  converts  string str  to float Convert.ToDouble(string str)  converts  string str  to double Convert.ToDecimal(string str)  converts  string str  to decimal Convert.ToChar( string str) converts  string str  to char type
Circle Area Calculation Program ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Arithmetic Operations ,[object Object],[object Object],[object Object],[object Object],[object Object],Addition Subtraction Multiplication Division Modulus 23 + 4 23 * 4 21 / 4 is 5 21 % 4 is 1 x + y x * 3.0 21 / 4.0 is 5.25 18 % 2 is 0  d – 14.0 + 23 d * 23.1 * 4   x / 4 x % 4 5 - 3 + 2 5 – 3 * 2 x / y x % y
Assignment operator ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Operator Precedence ,[object Object],Operator Explanation Associativity +  - plus and minus signs right-to-left *  /  % multiplication, division and modulus left-to-right +  - addition, subtraction left-to-right =  +=  -=  *=  /=  %= assignment operators right-to-left
Limits for Numeric Types ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Overflow ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Expressions with several operators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Expressions with several operators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

Brief introduction to the c programming language
Brief introduction to the c programming languageBrief introduction to the c programming language
Brief introduction to the c programming language
Kumar Gaurav
 

What's hot (20)

C programming notes
C programming notesC programming notes
C programming notes
 
Features of c
Features of cFeatures of c
Features of c
 
Learning the C Language
Learning the C LanguageLearning the C Language
Learning the C Language
 
Turbo prolog 2.0 basics
Turbo prolog 2.0 basicsTurbo prolog 2.0 basics
Turbo prolog 2.0 basics
 
File handling With Solve Programs
File handling With Solve ProgramsFile handling With Solve Programs
File handling With Solve Programs
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
 
C programming interview questions
C programming interview questionsC programming interview questions
C programming interview questions
 
Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++
 
C Language
C LanguageC Language
C Language
 
Introduction to programming with c,
Introduction to programming with c,Introduction to programming with c,
Introduction to programming with c,
 
Basic C Programming language
Basic C Programming languageBasic C Programming language
Basic C Programming language
 
Introduction to c++ ppt 1
Introduction to c++ ppt 1Introduction to c++ ppt 1
Introduction to c++ ppt 1
 
Brief introduction to the c programming language
Brief introduction to the c programming languageBrief introduction to the c programming language
Brief introduction to the c programming language
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C languaGE UNIT-1
 
Sachin kumar ppt on programming in c
Sachin kumar ppt on programming in cSachin kumar ppt on programming in c
Sachin kumar ppt on programming in c
 
C presentation
C presentationC presentation
C presentation
 
Oops
OopsOops
Oops
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
 
Aniket tore
Aniket toreAniket tore
Aniket tore
 

Viewers also liked (8)

Robotica - IA
Robotica - IARobotica - IA
Robotica - IA
 
Curso De CapacitacióN Web 2
Curso De CapacitacióN Web 2Curso De CapacitacióN Web 2
Curso De CapacitacióN Web 2
 
Beneficios computer society
Beneficios computer societyBeneficios computer society
Beneficios computer society
 
Participant manual chp for trainers mar 09-1
Participant manual chp for trainers mar 09-1Participant manual chp for trainers mar 09-1
Participant manual chp for trainers mar 09-1
 
Implicaciones de seguridad en la implantación de i pv6
Implicaciones de seguridad en la implantación de i pv6 Implicaciones de seguridad en la implantación de i pv6
Implicaciones de seguridad en la implantación de i pv6
 
Sociedad de la Información
Sociedad de la InformaciónSociedad de la Información
Sociedad de la Información
 
Plan nacional desarrollo 2007 - 2010
Plan nacional desarrollo 2007 - 2010Plan nacional desarrollo 2007 - 2010
Plan nacional desarrollo 2007 - 2010
 
Cuadro comparativo terminado
Cuadro comparativo terminadoCuadro comparativo terminado
Cuadro comparativo terminado
 

Similar to Basics1

1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx
tarifarmarie
 

Similar to Basics1 (20)

Cordovilla
CordovillaCordovilla
Cordovilla
 
Srgoc dotnet_new
Srgoc dotnet_newSrgoc dotnet_new
Srgoc dotnet_new
 
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
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx
 
C language tutorial
C language tutorialC language tutorial
C language tutorial
 
Chapter 3(1)
Chapter 3(1)Chapter 3(1)
Chapter 3(1)
 
csharp.docx
csharp.docxcsharp.docx
csharp.docx
 
(1) c sharp introduction_basics_dot_net
(1) c sharp introduction_basics_dot_net(1) c sharp introduction_basics_dot_net
(1) c sharp introduction_basics_dot_net
 
Module 2: Overview of c#
Module 2:  Overview of c#Module 2:  Overview of c#
Module 2: Overview of c#
 
C notes.pdf
C notes.pdfC notes.pdf
C notes.pdf
 
Structure of a C# Program
Structure of a C# ProgramStructure of a C# Program
Structure of a C# Program
 
Lecture 01 2017
Lecture 01 2017Lecture 01 2017
Lecture 01 2017
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Bcsl 031 solve assignment
 
C++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWAREC++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWARE
 
Learn C# programming - Program Structure & Basic Syntax
Learn C# programming - Program Structure & Basic SyntaxLearn C# programming - Program Structure & Basic Syntax
Learn C# programming - Program Structure & Basic Syntax
 

More from phanleson

Lecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
phanleson
 

More from phanleson (20)

Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
 
Firewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth FirewallsFirewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth Firewalls
 
Mobile Security - Wireless hacking
Mobile Security - Wireless hackingMobile Security - Wireless hacking
Mobile Security - Wireless hacking
 
Authentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless ProtocolsAuthentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless Protocols
 
E-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server AttacksE-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server Attacks
 
Hacking web applications
Hacking web applicationsHacking web applications
Hacking web applications
 
HBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table designHBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table design
 
HBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - OperationsHBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - Operations
 
Hbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBaseHbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBase
 
Learning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlibLearning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlib
 
Learning spark ch10 - Spark Streaming
Learning spark ch10 - Spark StreamingLearning spark ch10 - Spark Streaming
Learning spark ch10 - Spark Streaming
 
Learning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQLLearning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQL
 
Learning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a ClusterLearning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a Cluster
 
Learning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark ProgrammingLearning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark Programming
 
Learning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your DataLearning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your Data
 
Learning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value PairsLearning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value Pairs
 
Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
 
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about LibertagiaHướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
 
Lecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
 
Lecture 4 - Adding XTHML for the Web
Lecture  4 - Adding XTHML for the WebLecture  4 - Adding XTHML for the Web
Lecture 4 - Adding XTHML for the Web
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Basics1

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33. Value vs Reference Types number1 42 int number1 = 42; string name = “Gulsen Demiroz”; int number2 = number1; string text = name ; name Gulsen Demiroz number2 42 name
  • 34.
  • 35. Value Types Type System namespace Definition Uninitialized value short System.Int16 16 bit signed integer 0 int System.Int32 32 bit signed integer 0 long System.Int64 64 bit signed integer 0 ushort System.UInt16 16 bit unsigned integer 0 uint System.UInt32 32 bit unsigned integer 0 ulong System.UInt64 64 bit unsigned integer 0 float System.Single 32 bit real number 0.0 double System.Double 64 bit real number 0.0 decimal System.Decimal 128 bit real number 0 bool System.Boolean true or false false char System.Char 16 bit Unicode character ‘ ’ byte System.Byte 8 bit unsigned integer 0 sbyte System.SByte 8 bit signed integer 0 enum user-defined defines a type for a closed set 0 index value struct user-defined defines a compound type that consists of other types assumed value types, null reference types
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41. Valid Implicit Castings Type Types It Can Be Converted To sbyte short,int,float,long,double,decimal byte short,ushort,int,uint, long,ulong,float,double,decimal short int,long,float,double,decimal ushort int,uint,long,ulong,float,double,decimal int long,float,double,decimal uint long,ulong,float,double,decimal long, ulong float,double,decimal char float,double,decimal float double
  • 42.
  • 43.
  • 44.
  • 45. Convert class Method Convert.ToBoolean(string str) converts string str to bool Convert.ToByte(string str) converts string str to byte Convert.ToSByte(string str) converts string str to signed byte Convert.ToInt16(string str) converts string str to short Convert.ToUInt16(string str) converts string str to unsigned short Convert.ToInt32(string str) converts string str to integer Convert.To U Int32(string str) converts string str to unsigned integer Convert.ToInt64(string str) converts string str to long Convert.ToSingle(string str) converts string str to float Convert.ToDouble(string str) converts string str to double Convert.ToDecimal(string str) converts string str to decimal Convert.ToChar( string str) converts string str to char type
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.

Editor's Notes

  1. Unlike reference types, they always have a value
  2. Talk about the result of the operations in red in the table