SlideShare una empresa de Scribd logo
1 de 22
.NET Framework:
 .NET IS A FRAMEWORK TOOL AND IT IS AN INTEGRAL
WINDOWS COMPONENT THAT SUPPORTS BUILDING
AND RUNNING THE NEXT GENERATION OF
APPLICATIONS AND XML WEB SERVICES.
 .NET SUPPORTS 61 PROGRAMMING LANGUAGES OUT
OF WHICH 9 ARE DESIGNED BY MICROSOFT.
VERSIONS:
.NET COMPILATION
In .Net code is compiled twice.
In first compilation source code is compiled by
respective language compiler and an intermediate
code is generated known as MSIL (Microsoft
Intermediate Language).
In second compilation MSIL is converted into Native
code using CLR.
Framework Class Library (FCL)
Framework class library is a huge library of reusable
types for use by managed code.
It is the library of classes, interfaces and value types
that provides access to system functions.
It is designed to be the foundation on which .Net
framework applications, components and controls
are built.
The hierarchy of class library-----
Namespace
• Namespaces are the reusable concept in c#.net.
• Every namespace is a DLL file.
• Microsoft implemented object oriented programming
concept in the namespaces.
• It is a container that provides context for the identifiers.
• A namespace provides classes, structures, enumerations,
delegates, interfaces and other namespaces.
Namespace contd. :
• In .net framework “system” is the base namespace.
• Ex:
• using System;
• using System.Data;
• using System.Collections.Generic;
• using System.Windows.Forms;
• using System.Text;
• using System.Linq;
• using System.Threading;
• using System.Drawing;
Namespace contd. :
• To declare scope for types in a namespace………
• Namespace NamespaceName
• {
• Class ClassName { }
• Interface InterfaceName { }
• Struct StructureName { }
• Enum EnumerationName {a,b}
• Delegate void DelegateName (int i);
• Namespace NamespaceName.Nested
• {
• Class ClassName { }
• }
• }
Structure of C#.Net program
• List of Class Library Namespaces
• Namespace Namespace Name
• {
• Class Class Name
• {
• Static void main (string [ ] args)
• {
• Statements;
• }
• }
• }
Escape Sequence:
• n new line
• r carriage return
• t horizontal tab
• v vertical tab
• b backspace
• f form feed
• ’ single quote
• ” double quote
•  backslash
• 0 null
• a alert
Identifiers:
• Identifiers are the sequence of characters used to identify
variable, constants, properties, methods, object, types etc.
• C# identifiers are case-sensitive i.e. variable names sum,
Sum, SUM are different from each other.
• An identifier must begin with either a letter or an
underscore.
• It must not be a reserved keyword.
• It must be a complete word without any blank space.
Keywords:
• Keywords are predefined, reserved identifiers that have
special meanings to the compiler.
• They are similar to the identifiers but you can’t use them as
variable names, methods and properties.
• If you want to use the keywords as identifiers, prefix the
keyword with ‘@’ character.
Constant:
• A constant is a type but its value is fixed throughout the program
execution. Once the program gets compiled its value can’t be
changed.
• A variable is declared as constant using “const” keyword.
• Constants are useful when you know the value of a variable at
compile time.
Console:
• Console is a class used to work with input and output streams.
• This class is present in System namespace.
• This class has following methods/functions……
• Write(“message”)
• WriteLine(“message”)
• Read()
• ReadLine()
• Clear()
OPERATORS
Primary:
• x.y : dot – used to access member variables and methods of a class
• f(x) : parenthesis – used to convert the types
• a[x] : square brackets – used with arrays, pointers and attributes
• x++ : post increment
• x-- : post decrement
• new : used to create objects and call the constructors
Unary:
• + : unary plus
• - : unary minus
• ! : logical complement
• ~ : bitwise complement
• ++x : pre-increment
• --x : pre-decrement
Foreach:
• It continues to execute the loop body for each element in an array or
object collection.
• Here the data type of loop variable must be same as data type of
array/collection.
• Syntax….
• Foreach (datatype variable in array/list collection name)
• {
• Statements;
• }
ARRAY TYPES:
• Normal array : An array which occupies a memory size of less than 64kb is
known as normal array.
• Huge array : An array which occupies a memory size more than 64kb is known
as huge array.
• Static array : An array whose physical size is fixed and can’t be changed at
runtime is known as static array.
• Dynamic array : An array whose physical size is not fixed throughout the
program execution and can be changed at runtime is known as dynamic array.
• Array size can be changed during program execution using “Resize( )” of array
class.
• Jagged array : An array which contains another array within it is known a jagged
array. It is also called array of arrays.
SYNTAX OF ARRAYS:
• datatype[ ] array name = new datatype [size];
• datatype[ ] array name = new datatype [size]
{initializing elements};
• datatype[ ] array name = new datatype [ ]
{initializing elements};
Array Object:
• When we create any array with any name then the array is treated as an
object.
• “copy to()” method of array object is used to copy elements of one array
to another array.
• Syntax:- array object.copyto(destination array,index);
• “length” property of array object returns the size of an array.
• Syntax:- array object.Length
• “rank” property returns the number of dimension present within the
array.
• Syntax:- array object.Rank
Array class:
• reverse(array name, *int index, *int length);
• sort(array name, *int index, *int length);
• clear(array name, *int index, *int length);
• copy(source array, *int source index, destination array, *int
destination index, int length);
• * are optional

Más contenido relacionado

La actualidad más candente

C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)Jannat Ruma
 
How to choose best containers in STL (C++)
How to choose best containers in STL (C++)How to choose best containers in STL (C++)
How to choose best containers in STL (C++)Sangharsh agarwal
 
Understanding C# in .NET
Understanding C# in .NETUnderstanding C# in .NET
Understanding C# in .NETmentorrbuddy
 
Java Tutorial Lab 5
Java Tutorial Lab 5Java Tutorial Lab 5
Java Tutorial Lab 5Berk Soysal
 
Standard template library
Standard template libraryStandard template library
Standard template librarySukriti Singh
 
standard template library(STL) in C++
standard template library(STL) in C++standard template library(STL) in C++
standard template library(STL) in C++•sreejith •sree
 
Learning core java
Learning core javaLearning core java
Learning core javaAbhay Bharti
 
Java 103 intro to java data structures
Java 103   intro to java data structuresJava 103   intro to java data structures
Java 103 intro to java data structuresagorolabs
 
Standard template library
Standard template libraryStandard template library
Standard template libraryJancypriya M
 
Standard Template Library
Standard Template LibraryStandard Template Library
Standard Template LibraryGauravPatil318
 
Session 15 - Collections - Array List
Session 15 - Collections - Array ListSession 15 - Collections - Array List
Session 15 - Collections - Array ListPawanMM
 
Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics Hitesh-Java
 
Session 14 - Object Class
Session 14 - Object ClassSession 14 - Object Class
Session 14 - Object ClassPawanMM
 
An introduction to java programming
An introduction to java programmingAn introduction to java programming
An introduction to java programminghoshmand kareem
 

La actualidad más candente (20)

C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
 
STL in C++
STL in C++STL in C++
STL in C++
 
How to choose best containers in STL (C++)
How to choose best containers in STL (C++)How to choose best containers in STL (C++)
How to choose best containers in STL (C++)
 
Understanding C# in .NET
Understanding C# in .NETUnderstanding C# in .NET
Understanding C# in .NET
 
Java Tutorial Lab 5
Java Tutorial Lab 5Java Tutorial Lab 5
Java Tutorial Lab 5
 
Standard template library
Standard template libraryStandard template library
Standard template library
 
standard template library(STL) in C++
standard template library(STL) in C++standard template library(STL) in C++
standard template library(STL) in C++
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Learning core java
Learning core javaLearning core java
Learning core java
 
Java 103 intro to java data structures
Java 103   intro to java data structuresJava 103   intro to java data structures
Java 103 intro to java data structures
 
Standard template library
Standard template libraryStandard template library
Standard template library
 
Collection framework
Collection frameworkCollection framework
Collection framework
 
Standard Template Library
Standard Template LibraryStandard Template Library
Standard Template Library
 
Session 15 - Collections - Array List
Session 15 - Collections - Array ListSession 15 - Collections - Array List
Session 15 - Collections - Array List
 
Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics
 
C# basics
 C# basics C# basics
C# basics
 
Session 14 - Object Class
Session 14 - Object ClassSession 14 - Object Class
Session 14 - Object Class
 
Java util
Java utilJava util
Java util
 
An introduction to java programming
An introduction to java programmingAn introduction to java programming
An introduction to java programming
 
Files io
Files ioFiles io
Files io
 

Destacado

V-Empower Technical Competence Workflow
V-Empower Technical Competence WorkflowV-Empower Technical Competence Workflow
V-Empower Technical Competence WorkflowHannan Ahmed
 
dot net technology
dot net technologydot net technology
dot net technologyImran Khan
 
Visual Studio.NET
Visual Studio.NETVisual Studio.NET
Visual Studio.NETsalonityagi
 
.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework OverviewDoncho Minkov
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net frameworkThen Murugeshwari
 
.NET and C# Introduction
.NET and C# Introduction.NET and C# Introduction
.NET and C# IntroductionSiraj Memon
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...
Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...
Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...LaSandra Brill
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computersimran153
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To DotnetSAMIR BHOGAYTA
 
Fmcg training modules-bfg
Fmcg training modules-bfgFmcg training modules-bfg
Fmcg training modules-bfgRomy Cagampan
 

Destacado (16)

V-Empower Technical Competence Workflow
V-Empower Technical Competence WorkflowV-Empower Technical Competence Workflow
V-Empower Technical Competence Workflow
 
INSPIRING DESIGNS
INSPIRING DESIGNSINSPIRING DESIGNS
INSPIRING DESIGNS
 
dot net technology
dot net technologydot net technology
dot net technology
 
Visual Studio.NET
Visual Studio.NETVisual Studio.NET
Visual Studio.NET
 
C#.net
C#.netC#.net
C#.net
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework Overview
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net framework
 
.NET and C# Introduction
.NET and C# Introduction.NET and C# Introduction
.NET and C# Introduction
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...
Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...
Building a Community with Social Media and Web 2.0 - A Cisco Product Launch C...
 
Sports writing
Sports writingSports writing
Sports writing
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To Dotnet
 
Fmcg training modules-bfg
Fmcg training modules-bfgFmcg training modules-bfg
Fmcg training modules-bfg
 

Similar a Net framework (20)

Scala, Play 2.0 & Cloud Foundry
Scala, Play 2.0 & Cloud FoundryScala, Play 2.0 & Cloud Foundry
Scala, Play 2.0 & Cloud Foundry
 
Learn c++ Programming Language
Learn c++ Programming LanguageLearn c++ Programming Language
Learn c++ Programming Language
 
Advanced c#
Advanced c#Advanced c#
Advanced c#
 
TypeScript: Basic Features and Compilation Guide
TypeScript: Basic Features and Compilation GuideTypeScript: Basic Features and Compilation Guide
TypeScript: Basic Features and Compilation Guide
 
C#ppt
C#pptC#ppt
C#ppt
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
2CPP16 - STL
2CPP16 - STL2CPP16 - STL
2CPP16 - STL
 
Java-Intro.pptx
Java-Intro.pptxJava-Intro.pptx
Java-Intro.pptx
 
Learn c sharp at amc square learning
Learn c sharp at amc square learningLearn c sharp at amc square learning
Learn c sharp at amc square learning
 
Java2
Java2Java2
Java2
 
c++ Unit III - PPT.pptx
c++ Unit III - PPT.pptxc++ Unit III - PPT.pptx
c++ Unit III - PPT.pptx
 
C# for beginners
C# for beginnersC# for beginners
C# for beginners
 
Introduction to Scala
Introduction to ScalaIntroduction to Scala
Introduction to Scala
 
ppt_on_java.pptx
ppt_on_java.pptxppt_on_java.pptx
ppt_on_java.pptx
 
5variables in c#
5variables in c#5variables in c#
5variables in c#
 
Java
JavaJava
Java
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Python ppt
Python pptPython ppt
Python ppt
 
Java
Java Java
Java
 
C++ training
C++ training C++ training
C++ training
 

Más de Abhishek Mukherjee

Más de Abhishek Mukherjee (7)

Abhishek_Mukherjee
Abhishek_MukherjeeAbhishek_Mukherjee
Abhishek_Mukherjee
 
WELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANINGWELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANING
 
Map Reduce basics
Map Reduce basicsMap Reduce basics
Map Reduce basics
 
Php Bascis
Php BascisPhp Bascis
Php Bascis
 
Filtering an image is to apply a convolution
Filtering an image is to apply a convolutionFiltering an image is to apply a convolution
Filtering an image is to apply a convolution
 
Photoshop Basics
Photoshop BasicsPhotoshop Basics
Photoshop Basics
 
C# basics...
C# basics...C# basics...
C# basics...
 

Último

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 

Último (20)

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 

Net framework

  • 1. .NET Framework:  .NET IS A FRAMEWORK TOOL AND IT IS AN INTEGRAL WINDOWS COMPONENT THAT SUPPORTS BUILDING AND RUNNING THE NEXT GENERATION OF APPLICATIONS AND XML WEB SERVICES.  .NET SUPPORTS 61 PROGRAMMING LANGUAGES OUT OF WHICH 9 ARE DESIGNED BY MICROSOFT.
  • 3. .NET COMPILATION In .Net code is compiled twice. In first compilation source code is compiled by respective language compiler and an intermediate code is generated known as MSIL (Microsoft Intermediate Language). In second compilation MSIL is converted into Native code using CLR.
  • 4. Framework Class Library (FCL) Framework class library is a huge library of reusable types for use by managed code. It is the library of classes, interfaces and value types that provides access to system functions. It is designed to be the foundation on which .Net framework applications, components and controls are built.
  • 5. The hierarchy of class library-----
  • 6. Namespace • Namespaces are the reusable concept in c#.net. • Every namespace is a DLL file. • Microsoft implemented object oriented programming concept in the namespaces. • It is a container that provides context for the identifiers. • A namespace provides classes, structures, enumerations, delegates, interfaces and other namespaces.
  • 7. Namespace contd. : • In .net framework “system” is the base namespace. • Ex: • using System; • using System.Data; • using System.Collections.Generic; • using System.Windows.Forms; • using System.Text; • using System.Linq; • using System.Threading; • using System.Drawing;
  • 8. Namespace contd. : • To declare scope for types in a namespace……… • Namespace NamespaceName • { • Class ClassName { } • Interface InterfaceName { } • Struct StructureName { } • Enum EnumerationName {a,b} • Delegate void DelegateName (int i); • Namespace NamespaceName.Nested • { • Class ClassName { } • } • }
  • 9. Structure of C#.Net program • List of Class Library Namespaces • Namespace Namespace Name • { • Class Class Name • { • Static void main (string [ ] args) • { • Statements; • } • } • }
  • 10. Escape Sequence: • n new line • r carriage return • t horizontal tab • v vertical tab • b backspace • f form feed • ’ single quote • ” double quote • backslash • 0 null • a alert
  • 11. Identifiers: • Identifiers are the sequence of characters used to identify variable, constants, properties, methods, object, types etc. • C# identifiers are case-sensitive i.e. variable names sum, Sum, SUM are different from each other. • An identifier must begin with either a letter or an underscore. • It must not be a reserved keyword. • It must be a complete word without any blank space.
  • 12. Keywords: • Keywords are predefined, reserved identifiers that have special meanings to the compiler. • They are similar to the identifiers but you can’t use them as variable names, methods and properties. • If you want to use the keywords as identifiers, prefix the keyword with ‘@’ character.
  • 13. Constant: • A constant is a type but its value is fixed throughout the program execution. Once the program gets compiled its value can’t be changed. • A variable is declared as constant using “const” keyword. • Constants are useful when you know the value of a variable at compile time.
  • 14. Console: • Console is a class used to work with input and output streams. • This class is present in System namespace. • This class has following methods/functions…… • Write(“message”) • WriteLine(“message”) • Read() • ReadLine() • Clear()
  • 16. Primary: • x.y : dot – used to access member variables and methods of a class • f(x) : parenthesis – used to convert the types • a[x] : square brackets – used with arrays, pointers and attributes • x++ : post increment • x-- : post decrement • new : used to create objects and call the constructors
  • 17. Unary: • + : unary plus • - : unary minus • ! : logical complement • ~ : bitwise complement • ++x : pre-increment • --x : pre-decrement
  • 18. Foreach: • It continues to execute the loop body for each element in an array or object collection. • Here the data type of loop variable must be same as data type of array/collection. • Syntax…. • Foreach (datatype variable in array/list collection name) • { • Statements; • }
  • 19. ARRAY TYPES: • Normal array : An array which occupies a memory size of less than 64kb is known as normal array. • Huge array : An array which occupies a memory size more than 64kb is known as huge array. • Static array : An array whose physical size is fixed and can’t be changed at runtime is known as static array. • Dynamic array : An array whose physical size is not fixed throughout the program execution and can be changed at runtime is known as dynamic array. • Array size can be changed during program execution using “Resize( )” of array class. • Jagged array : An array which contains another array within it is known a jagged array. It is also called array of arrays.
  • 20. SYNTAX OF ARRAYS: • datatype[ ] array name = new datatype [size]; • datatype[ ] array name = new datatype [size] {initializing elements}; • datatype[ ] array name = new datatype [ ] {initializing elements};
  • 21. Array Object: • When we create any array with any name then the array is treated as an object. • “copy to()” method of array object is used to copy elements of one array to another array. • Syntax:- array object.copyto(destination array,index); • “length” property of array object returns the size of an array. • Syntax:- array object.Length • “rank” property returns the number of dimension present within the array. • Syntax:- array object.Rank
  • 22. Array class: • reverse(array name, *int index, *int length); • sort(array name, *int index, *int length); • clear(array name, *int index, *int length); • copy(source array, *int source index, destination array, *int destination index, int length); • * are optional