C# and dot net framework
Upcoming SlideShare
Loading in...5
×
 
  • 145 views

The .NET Framework is a platform created by Microsoft for developing applications

The .NET Framework is a platform created by Microsoft for developing applications

Statistics

Views

Total Views
145
Views on SlideShare
145
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

C# and dot net framework C# and dot net framework Presentation Transcript

  • C# and .NET framework Anoop K. C. anoop@baabte.com www.facebook.com/anoopb aabte twitter.com/anoop_baabte in.linkedin.com/in/anoopbaa bte/ +91 9746854752
  • What is .NET framework? The .NET Framework is a platform created by Microsoft for developing applications.  .NET Framework enables the creation of Windows applications, Web applications, Web services and many other kinds of applications  Can use a no. of languages like C#, vb.net, F#, C++, cobol etc.  The .NET Framework consists primarily of a gigantic library of code that you use from your client languages (such as C#) using object-oriented programming (OOP) techniques  includes the .NET Common Language Runtime(CLR), which is responsible for maintaining the execution of all applications developed using the .NET library.
  • CIL and JIT • When a code that uses the .NET Framework library is compiled, the code is first compiled to Common Intermediate Language(CIL) code. • The just-in-time (JIT) compiler compiles CIL into native code that is specific to the OS and machine architecture being targeted. • Then only the OS can execute the commands in the code. • CIL code is independent of the machine, operating system, and CPU • Several JIT compilers exist, each targeting a different architecture, and the appropriate one is used to create the native code required • the CIL and JIT are part of the .net framework
  • Assemblies • When an application is compiled, the CIL code created is stored in an assembly. Assemblies include  .exe (executable) files - can run directly from Windows without the need for any other programs  .dll (dynamic link libraries) – functionalities in libraries can readily be used by other applications •Custom dlls can be created and stored in the Global Assembly Cache (GAC) and made available to all applications using the .net framework •When an application is executed (a stage usually referred to as runtime), the CLR looks after the application by managing memory, handling security, allowing cross- language debugging, and so on.
  • Garbage Collection • This is the .NET method of making sure that the memory used by an application is freed up completely when the application is no longer in use. •Prior to .NET this was mostly the responsibility of programmers, and a few simple errors in code could result in large blocks of memory mysteriously disappearing as a result of being allocated to the wrong place in memory, which slows down the machine •.NET garbage collection works by periodically inspecting the memory of your computer and removing anything from it that is no longer needed
  • C#  C#, is one of the languages that can be used to create applications that will run in the .NET CLR an evolution of the C and C++ languages and has been created by Microsoft specifically to work with the .NET platform C# is a type-safe language - once some data has been assigned to a type, it cannot subsequently transform itself into another unrelated type C# can make use of every feature that the .NET Framework code library offers, unlike other .net languages
  • Microsoft Visual Studio Microsoft Visual Studio is an IDE (Integrated Development Environment) on which .net applications can be created easily. It is a powerful tool that can expose the features of the .net framework to make the developers work easier Applications can be run from within the IDE and has inbuilt compiler and debugger (no need to install third party servers like WAMP, XAMPP etc. to run the application as in case of PHP) It exposes a rich design based interface to manage any aspect of a .net project from design to deployment
  • .Net Controls, Events and Event handlers .net Controls – •There are no. of controls those are available in the toolbox inside visual studio. Eg. Button, textbox, dropdownlist etc. •Each control represents a class extended from the System.Web.UI.WebControls class •Each control has events, properties and methods associated with it •Each control in an aspx page is identified by a unique id, no two controls on the same page can share an id Events •Events happen when the user does some sort of action on a control eg. Click for a button, changing the text for a textbox etc. Event Handlers •Event handlers are code blocks that will be executed when events are raised
  • .Net Controls, Events and Event handlers •In plain words an event handler for the click of a button that has an id “btn_a” will tell the server to “Do this on the click of btn_a” •There are no. of event handlers associated with each type of .net control •Custom event handlers can also be registered for certain controls.
  • Follow us @ twitter.com/baabtra Like us @ facebook.com/baabtra Subscribe to us @ youtube.com/baabtra Become a follower @ slideshare.net/BaabtraMentoringPartner Connect to us @ in.linkedin.com/in/baabtra Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com
  • Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Cafit Square, Hilite Business Park, Near Pantheerankavu, Kozhikode Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com