1 / 12

New Features in C# 4.0

New Features in C# 4.0. Revealing the CLR 4.0 Internals. Svetlin Nakov. Telerik Corporation. www.telerik.com. Table of Contents. What is CLR? What is C#? What is new in CLR 4.0? How CLR 4.0 Works? Garbage Collector Improvements and the Future of Garbage Collecting Functional Programming

walden
Download Presentation

New Features in C# 4.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. New Features in C# 4.0 Revealing the CLR 4.0 Internals Svetlin Nakov Telerik Corporation www.telerik.com

  2. Table of Contents • What is CLR? • What is C#? • What is new in CLR 4.0? • How CLR 4.0 Works? • Garbage Collector Improvements and the Future of Garbage Collecting • Functional Programming • What is new in C# 4.0? • Comparing C# 4.0 to C# 3.5

  3. A Look Inside CLR What is CLR and How it Works?

  4. What is CLR? • Common Language Runtime • The heart of the .NET Framework • A kind of “Virtual Machine” • Executes the MSIL code • Multiplatform • Runs on Windows (MS .NET Framework) and on Linux (Mono) • Compile-on-demand • Just-in-time compiler (JIT compiler)

  5. Hello World – Example • This is a classical “Hello World example in C#”: using System; using System.Collections.Generic; using System.Linq; namespace TestProject { class Program { static void Main() { Console.WriteLine("Alabala"); } } }

  6. C# Code – How It Works? Define a class called "HelloCSharp" Include the standard namespace "System" Define the Main() method – the program entry point using System; class HelloCSharp { static void Main() { Console.WriteLine("Hello, C#"); } } Print a text on the console by calling the method "WriteLine" of the class "Console"

  7. Learning & Filtering Process

  8. External Training Learning Track

  9. Operators in C# 4.0

  10. Inside C# Language How C# Works and How it is Related to CLR

  11. What is C#? • C# is high-level programming language • Similar to Java and C++ • Developed by Anders Hejlsberg, the author of Borland Delphi • Strongly typed • One of the CLR languages • C# is object-oriented language • Programs are made of classes and objects • One on the classes contains the Main() method

  12. New Features in C# 4.0 ? ? Questions? ? ? ? ? ? ? ? ? ?

More Related