Your SlideShare is downloading. ×
C# and dot net framework
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

C# and dot net framework


Published on

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

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

Published in: Software, Technology

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. C# and .NET framework Anoop K. C. aabte bte/ +91 9746854752
  • 2. 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#,, 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.
  • 3. 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
  • 4. 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.
  • 5. 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
  • 6. 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
  • 7. 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
  • 8. .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
  • 9. .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.
  • 10. Follow us @ Like us @ Subscribe to us @ Become a follower @ Connect to us @ Thanks in advance. | |
  • 11. 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: