.NET 3.5 – Mysteries. NetFx Evolution NetFx 1.0 C# 1.0, VB 7.0, VS.NET NetFx 1.1 C# 1.1, VB 7.1, VS 2003 NetFx 2.0 C# 2.0, VB 8.0, VS 2005 NetFx 3.0 C#

Slides:



Advertisements
Similar presentations
Developer Knowledge Sharing Eric Sun Dec, What programming language did you learn in school and since then? Now, its time to refresh …
Advertisements

Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) ASP.NET 3.5 New Features.
The Microsoft Technical Roadshow 2007 Language Enhancements and LINQ Daniel Moth Developer & Platform Group Microsoft Ltd
Unit 1: Overview of the Microsoft.NET Platform
Introduction to .NET Framework
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
LINQ and Collections An introduction to LINQ and Collections.
Visual Studio 2008 and the.NET Framework v3.5 Gill Cleeren Microsoft Regional Director.
Sharpen Your MVC Views with Razor By Jon Marozick.
Extension Methods, Anonymous Types LINQ Query Keywords, Lambda Expressions Svetlin Nakov Telerik Corporation
FIRST LOOK AT “ORCAS” Scott Guthrie General Manager.NET Developer Platform.
1 Visual Studio 2008 Fons Sonnemans (Trainer) Reflection IT
Building a Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 (Part 1 of 2) Jeff King Program Manager Microsoft Corporation
Visual Studio 2008 and ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
What’s new in ASP.NET 3.5? Mike Ormond Developer & Platform Group Microsoft Ltd
2.3 Cool features in C# academy.zariba.com 1. Lecture Content 1.Extension Methods 2.Anonymous Types 3.Delegates 4.Action and Func 5.Events 6.Lambda Expressions.
C# 3.0 and LINQ Pavel Yosifovich CTO, Hi-Tech College
A tour of new features introducing LINQ. Agenda of LINQ Presentation We have features for every step of the way LINQ Fundamentals Anonymous Functions/Lambda.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Aptech Borivali(West) Hefin Dsouza. Agenda  What is.NET and What is Visual Studio? .NET Framework 3.5 Overview.  Visual Studio 2008 Enhancements. 
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Louis de Klerk Consultant Inobits Consulting DTL308.
A tour of Visual Studio 2008 and the.NET Framework v3.5 Daniel Moth Developer & Platform Group Microsoft
Differences between C# and C++ Dr. Catherine Stringfellow Dr. Stewart Carpenter.
 Introduction  What is LINQ  Syntax  How to Query  Example Program.
Extension Methods Programming in C# Extension Methods CSE Prof. Roger Crawfis.
Eric Vogel Software Developer A.J. Boggs & Company.
Module 1: Introduction to C# Module 2: Variables and Data Types
Session 1 - Introduction and Data Access Layer
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
Entity Framework MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Putting it all together: LINQ as an Example. The Problem: SQL in Code Programs often connect to database servers. Database servers only “speak” SQL. Programs.
Extension Methods, Anonymous Types LINQ Query Keywords, Lambda Expressions Based on material from Telerik Corporation.
Introduction to C# C# is - elegant, type-safe, object oriented language enabling to build applications that run on the.NET framework - types of applications.
.NET 2.0 and Visual Studio 2005 SigWin Outline Language enhancements in C# Language enhancements in C# –Generics –Partial types –Anonymous methods.
Hoang Anh Viet Hà Nội University of Technology Chapter 1. Introduction to C# Programming.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
C# 2.0 and Future Directions Anders Hejlsberg Technical Fellow Microsoft Corporation.
C# 3.0 and LINQ Pavel Yosifovich CTO, Hi-Tech College
AUC Technologies LINQ (Language Integrated Query) LINQ Presented By : SHAIKH SHARYAR JAVED Software Engineer (Daedalus Software Inc.) Technology Teacher.
C#: Future Directions in Language Innovation Anders Hejlsberg TLN307 Technical Fellow Microsoft Corporation.
Object Oriented Programming Generic Collections and LINQ Dr. Mike Spann
CSCI 3327 Visual Basic Chapter 8: Introduction to LINQ and Collections UTPA – Fall 2011.
Inside LINQ to Objects How LINQ to Objects work Inside LINQ1.
Satisfy Your Technical Curiosity C# 3.0 Raj Pai Group Program Manager Microsoft Corporation
Jonathan Aneja Program Manager Microsoft Corporation Session Code: DTL336 Anders Hejlsberg Technical Fellow Microsoft Corporation.
LINQ Language Integrated Query LINQ1. LINQ: Why and what? Problem Many data sources: Relational databases, XML, in-memory data structures, objects, etc.
Session 02 Module 3: Statements and Operators Module 4: Programming constructs Module 5: Arrays.
Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd
Writing Better C# Using C# 6 By: Mitchel Sellers.
LINQ and Lambda Expressions Telerik Software Academy LINQ Overview.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Visual Studio 2010 and.NET Framework 4 Training Workshop.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
Building Web Applications with Microsoft ASP
Part 1: Overview of LINQ Intro to LINQ Presenter: PhuongNQK.
DotNetSpider Editor Hefin Dsouza
LINQ for SQL SQL Saturday May 2009 David Fekke.
Lambda Expressions By Val Feldsher.
LiNQ SQL Saturday David Fekke.
C# and the .NET Framework
ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
MIS Professor Sandvig MIS 324 Professor Sandvig
.NET and .NET Core 9. Towards Higher Order Pan Wuming 2017.
Visual Studio “Orcas” & .NET Framework v3.5
LINQ & ADO.NET Entity Framework
MIS Professor Sandvig MIS 324 Professor Sandvig
ADO.NET Entity Framework
Visual Studio 2008.
CS4540 Special Topics in Web Development LINQ to Objects
Presentation transcript:

.NET 3.5 – Mysteries

NetFx Evolution NetFx 1.0 C# 1.0, VB 7.0, VS.NET NetFx 1.1 C# 1.1, VB 7.1, VS 2003 NetFx 2.0 C# 2.0, VB 8.0, VS 2005 NetFx 3.0 C# 2.0, VB 8.0, VS 2005 Add-on NetFx 3.5 C# 3.0, VB 9.0, VS 2008 NetFx 3.5 S P1 C# 3.0, VB 9.0, VS 2008 SP1 NetFx 4.0 C# 4.0, VB 10.0, VS 2010

NetFx 3.5 Feature List Automatic Properties Object and Collection Initializers Extension Methods Lambda Expressions Implicit Typing Anonymous Method/Types Partial Methods LINQ

Automatic Properties Two-in-one. Clean, Compact and Concise. Makes Visual Basic programmers jealous. Speed, speed, speed! public class Person { private string _firstName; public string FirstName { get { return _firstName; } set { _firstName = value; } } public class Person { public string FirstName { get; set; } }

Object and Collection Initializers Did you C this? What’s the best one-liner of.Net? Object and Collection Initializers. Named assignments. Isn’t intelliSense just wonderful? A little helping hand. Person person = new Person(); person.FirstName = "Scott"; person.LastName = "Guthrie“; person.Age = 32; great "syntactic sugar" language feature called "object Initializers" that allows you to-do this and re-write the above code like so: Person person = new Person { FirstName="Scott", LastName="Guthrie", Age=32 };

Extension Methods Static Implementation. Scoped in namespace. Limited access and Low priority. Fuel for the LINQ Engine. string = Request.QueryString[" "]; if ( .IsValid Address() ) { }

Lambda Expressions The next step… Concise and not that complex. Just like anonymous method, but smaller. Can be converted to a Expression Tree. Why do we need it?

Implicit Typing It’s implicit, not dynamic. Specific rules to follow. Helps with LINQ Helps with Generic Extension Methods Helps with Lambda Expressions

Anonymous Methods create inline un-named methods in your code int[] EvenInts = Array.FindAll (Ints, delegate(int ints) { return (ints % 2 == 0); } );

Anonymous Types allow you to create a class structure on the fly. var dog = new { Breed = "Cocker Spaniel", Coat = "black", FerocityLevel = 1 };

Partial Methods Its also not a method defined in two files. So, what is a partial method after all? A separation of declaration and definition. What, how can it disappear? Why do we need it? partial class PartialMethods //Part 1 { static void Main() { Do(); } static partial void Do(); } partial class PartialMethods //Part 2 { static partial void Do() {} }

All concepts in one code

LINQ Implicit Typi ng. LINQ to SQL. Extension M ethods. LINQ to Obje cts. LINQ to XML. Lambda Exp ressions. Expression T rees. The Mysterious LINQ

LINQ So, what is LINQ( Language-INtegrated Query) ? –It extends C# and Visual Basic with native language syntax for queries and provides class libraries t o take advantage of these capabilities. LINQ to SQL. LINQ to Objects. LINQ to XML. How does it work?

Summary Did we miss the Foundations? What about Service Pack 1? –WPF improvements –.NET Framework 3.5 SP1 Optimized Client Runtime –New ADO.NET Data Features ADO.NET Entity Framework ADO.NET Data Services –New ASP.NET Features ASP.NET Dynamic Data Improved ASP.NET AJX Support Why 3.5 when 4 is already out? Can I use Visual Studio 2010 with 3.5? –Yes, because of multi-targeting feature

Enter Text Here Thank You