Net framework
Upcoming SlideShare
Loading in...5
×
 

Net framework

on

  • 467 views

 

Statistics

Views

Total Views
467
Views on SlideShare
467
Embed Views
0

Actions

Likes
0
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

    Net framework Net framework Presentation Transcript

    • Introduction to .NETFramework 3.5 and C# 3.0 Programming in C# tnngo2@gmail.com
    • A look back … 3.5 3.0 .NET 1.0 .NET 1.1 .NET 2.0 .NET 4 2002 2003 2005-08 2008 CTP CLR 1.0 CLR 1.1 CLR 2.0 CLR 4
    • Architecture Win And WPF DLR ASP.NET WCF LINQ Forms more! Base Class Libraries The CLR JIT & Garbage Security Exception Loader & NGEN Collector Model Handling Binder
    • JIT Interpreted Static compilation compilation in execution before executing Just-in-time Compilation hybrid approach
    • NGEN use native image from cache instead using JIT compilation
    • Loader & Binder locating assemblies at run-time and binding to them.
    • WPF – Windows Presentation Foundation graphical subsystem for rendering UI in windows-based application Silverlight utilizes WPF to provide embedded web controls comparable to Adobe Flash but more focus on an UI object model and less on animation.
    • WCF – Windows Communication Foundation designing and deploying distributed applications under services- oriented architecture (SOA) implementation set of principle and methodologies for interoperable application
    • DLR – Dynamic language runtime a runtime environment that adds a set of services for dynamic languages to the common language runtime (CLR) Dynamic language identify the type of object at runtime whereas in statically type languages must specify object type at design time https://gist.github.com/2627105
    • New features of C# 3.0
    • Implicitly Typed Local Variables declare variables without specifying the type at design time Must be declared and initialized at the same time. var age; // Error, no initializer to infer the data type var age = 5; // Valid Cannot used as a return type and argument of method. Not possible for multiple declaration var age = 1, genre = “male”; // Error
    • Object Initializers Creates an object and initialize its fields and properties without a constructor https://gist.github.com/2627433
    • Auto-implemented Properties Creates an object and initialize its fields and properties without a constructor public string HouseName { get; set; }
    • Extension Methods Allows you to extend an existing type with new functionality without directly modifying those types Are static methods that have to be declared in a static class Declare an extension method by specifying the first parameter with this keyword static return-type MethodName (this type obj, param-list) https://gist.github.com/2627468
    • Collection Initializers ClassName objName = new CollectionClassName{ collection-initializer }
    • Predefined Generic Delegates Func<T, TResult>() Delegate Represents a method having one parameters type T and returns a value of type TResult public delegate TResult Func<TResult>() https://gist.github.com/2627640
    • Lambda Expressions is an alternative to anonymous methods. parameter-list => expression or statements https://gist.github.com/2633475