Eric Vogel Software Developer A.J. Boggs & Company.

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
Visual Studio 2008 and the.NET Framework v3.5 Gill Cleeren Microsoft Regional Director.
Extension Methods, Anonymous Types LINQ Query Keywords, Lambda Expressions Svetlin Nakov Telerik Corporation
.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#
FIRST LOOK AT “ORCAS” Scott Guthrie General Manager.NET Developer Platform.
By Sam Nasr Nasr Information Systems May 14, 2013.
Name SuPeng. .NET Framework & Visual Studio Roadmap.NET Framework 3.5 overview Visual Studio design goals Lap around new features.
1 Visual Studio 2008 Fons Sonnemans (Trainer) Reflection IT
ASP.NET 3.5 New Features. 2 Agenda What's New in.NET Framework 3.5? Visual Studio 2008 Enhancements LINQ (Language Integrated Query) New ASP.NET Server.
Originally founded in 1985 as Rock Financial by Dan Gilbert Grew to one of the largest independent mortgage banks in the country 1998 IPO 1999 Launched.
OPC WPFHMI.NET.
Building a Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 (Part 1 of 2) Jeff King Program Manager Microsoft Corporation
1/50 Project Management. 2/50 StumbleUpon 3/50 Overview Customize? Why, what, how?.NET Framework overview & fundamentals Class libraries, namespaces,
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
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Aptech Borivali(West) Hefin Dsouza. Agenda  What is.NET and What is Visual Studio? .NET Framework 3.5 Overview.  Visual Studio 2008 Enhancements. 
Powerful, modern desktops enable next generation applications Hardware acceleration brings real-time lighting, texturing and rendering Visual.
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
Creating and Running Your First C# Program Telerik Software Academy Telerik School Academy.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
 Introduction  What is LINQ  Syntax  How to Query  Example Program.
.NET Overview. 2 Objectives Introduce.NET –overview –languages –libraries –development and execution model Examine simple C# program.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Using Visual Basic 6.0 to Create Web-Based Database Applications
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.
Programming Pillars Introduction to Object- Oriented Programming.
Introduction to C# C# is - elegant, type-safe, object oriented language enabling to build applications that run on the.NET framework - types of applications.
Tony Goodhew Product Planner DEV328.
Introduction to LINQ Chapter 11. Introduction Large amounts of data are often stored in a database—an organized collection of data. A database management.
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
Lecture 1: IDE - Integrated Development Environment.NET Framework Visual Studio 2010.NET Solution Explorer Properties Window.
C# 2.0 and Future Directions Anders Hejlsberg Technical Fellow Microsoft Corporation.
CSCI 3327 Visual Basic Chapter 8: Introduction to LINQ and Collections UTPA – Fall 2011.
Satisfy Your Technical Curiosity C# 3.0 Raj Pai Group Program Manager Microsoft Corporation
Rich Internet Applications 2. Core JavaScript. The importance of JavaScript Many choices open to the developer for server-side Can choose server technology.
Jonathan Aneja Program Manager Microsoft Corporation Session Code: DTL336 Anders Hejlsberg Technical Fellow Microsoft Corporation.
ILM Proprietary and Confidential -
What was new in VS Studio 2008 A bird eye view from the height of ft By: Shahzad Sarwar Software Architect Comsoft computer consultants.
My Sessions here at Tech Ed Mon, 16:00, TLA201, Auditorium A Tour of Visual Studio 2008 and the.NET Framework 3.5 Tue, 10:45, MED202, Room 113 Building.
Exploring Networked Data and Data Stores Lesson 3.
Chapter 11.  Large amounts of data are often stored in a database—an organized collection of data.  A database management system (DBMS) provides mechanisms.
Building Web Applications with Microsoft ASP
Introduction ITEC 420.
Introducing the Microsoft® .NET Framework
Part 1: Overview of LINQ Intro to LINQ Presenter: PhuongNQK.
DotNetSpider Editor Hefin Dsouza
/* LIFE RUNS ON CODE*/ Konstantinos Pantos Microsoft MVP ASP.NET
.NET Framework 2.0 .NET Framework 3.0 .NET Framework 3.5
Language Integrated Query: (LINQ) An introduction
Jim Fawcett CSE681 – Software Modeling and Analysis Fall 2005
UNIT - V STORED PROCEDURE.
Microsoft .NET 3. Language Innovations Pan Wuming 2017.
.NET and .NET Core 5.2 Type Operations Pan Wuming 2016.
.NET and .NET Core 9. Towards Higher Order Pan Wuming 2017.
VISUAL BASIC.
6 Delegate and Lambda Expressions
Introduction to LINQ Chapter 11 10/28/2015 Lect 4 CT1411.
Visual Studio “Orcas” & .NET Framework v3.5
Introduction to LINQ Chapter 11.
Visual Studio 2008 Mike Taulty Developer & Platform Group
WCF Data Services and Silverlight
Visual Studio 2008.
Corresponds with Chapter 5
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Eric Vogel Software Developer A.J. Boggs & Company

What’s new? New Projects for.NET 3.0 and 3.5 Framework build targeting Javascript IDE enhancements Built in Unit Testing! New language additions to C# and VB

New Projects Windows WPF Web ASP.NET AJAX WCF Service Office Office 2007 Workflow Smart Device Target.NET 2.0,3.0, and 3.5 Compact Frameworks. Windows Mobile 5.0, 6.0 SDK as free download.

.NET 3.0 Windows Presentation Foundation (WPF) Windows Forms replacement. Controls are expressed in XAML. Provides a more expressive UI layer for applications. Windows Communication Foundation (WCF) Bridges networking APIs (Web Services,.NET Remoting,..) into one API. Very configurable, supports multiple transport layers such as http and tcp. SOAP 1.1 and 1.2 complient.

.NET 3.0 (continued) Work Flow (WF) Allows graphical design of sequences and state machines. Good for expressing business processes. Card Space Security identification service that stores users identification information. WCF supports Card Space.

.NET 3.5 New language additions to C# 3.0 and VB.NET 9.0 LINQ ASP.NET AJAX WF support in WCF Services Host Work Flow in a WCF Service

Framework build targeting Compile projects to target a specific.NET Framework. Supports.NET 2.0,3.0, and 3.5

Javascript IDE Enhancements IntelliSense support added Easier to debug code Demo

Unit Testing Only included in Pro and Team Editions. Can create tests for Web, Desktop, and Mobile applications. Demo

New in C# and VB.NET Implicitly typed local variables Object intializers Array initializers Anonymous types Extension Methods Lambda Expressions LINQ

Implicitly typed local variables Variable declarator must have an intializer Type is inferred by the initialization of the variable Variable cannot be initialized to null Examples: C# var foo = 5; var bar = “Hello GLUG.net”; var foobar = new List (); VB Dim foo = 5; Dim bar = “Hello GLUG.net”; Dim foobar = New List(Of Integer)

Object initialzers Initialize properties and accessible members of an object. Nice substitute for overloaded constructors. Can be embedded Examples: C# var voyager = new Ship{Capacity=1000, Shields=200}; VB Dim voyager = New Ship With {.Capacity = 1000,.Shields = 200}

Implicitly typed arrays The type of the array is determined by its initialized content. Examples: C# var scores = new[] { 50, 60, 70, 70, 80, 90, 100 }; VB Dim scores() = { 50, 60, 70, 70, 80, 90, 100 }

Anonymous Types Create objects with anonymous types. Anonymous types inherit from Object. Examples: C# var item = new { Id=10, ItemType="Game", Cost= }; VB Dim item = New With {.Id = 10,.ItemType = "Game",.Cost = 29.99}

Extension Methods Static method that extends an existing class. Invoked as if it were an instance method of the class being extended. Shadowed by member methods of the extending class. Only allowed access to public members of the extending class.

Extension Methods (C# example) Example: public static class ExtensionMethods { public static bool GreaterThan(this int i, int n) { return i > n; } int num = 5; num.GreaterThan(2); // will return true, since 5 is greater than 2

Extension Methods (VB example) Example: Imports System.Runtime.CompilerServices Public Module ExtensionMethods _ Public Function GreaterThan(ByVal i As Integer, ByVal n As Integer) As Boolean Return i > n End Function End Module Dim num As Integer = 5 num.GreaterThan(2) ) ‘ will return true, since 5 is greater than 2

Lambda Expressions C# (input parameters) => { expression or statement block } VB Function(input parameters) expression or statement block Provide a cleaner and more concise expression of anonymous methods. Parameters can be explicitly or implicitly typed. Have a million and one uses! Demo

LINQ Language INtegration Query or LINQ introduces the ability to query objects directly in the language. Syntax is very similar to SQL. Visual Studio 2008 currently has LINQ to SQL, LINQ to XML and LINQ to Objects. Demo of LINQ to Objects.

C# only additions Collection Intializers Automatic properties

Collection Initializers Collection must implement IEnumerable. Each item is added to the collection behind the scenes by calling the Add method of the collection. Examples: List names = new List { “Eric”, “Jeff”, “Joe” }; List scores = new List { 50, 60, 70, 70, 80, 90};

Automatic Properties More concise way to create a Property with a backing field. New default code snippet for prop in VS Examples: public int NumDays { get; set; } public DateTime DueDate { get; set; }

VB.NET only additions XML Literals Relaxed Delegates

XML literals XML is able to be used as a literal. IntelliSense support, including schemas. Tight integration with LINQ to XML. Examples: Dim products = 20 Dim appConfig =

Relaxed Delegates Methods no longer have to exactly match their method delegate signatures. Methods can have a derived type of what is defined in the delegate as a return type (covariance). Methods can be passed arguments with types that are base classes of the arguments specified in the delegate signature (contravariance).

Covariance Example Public Class Record End Class Public Class Person Inherits Record End Class Public Delegate Function RecordChanged(ByVal Id As Integer) As Record Public Function GetChangedRecord(ByVal Id As Integer) As Record Return New Record End Function Public Function GetChangedPerson(ByVal Id As Integer) As Person Return New Person End Function Sub Main() Dim changedPerson As RecordChanged = AddressOf GetChangedPerson End Sub

Contravariance Example Public Delegate Sub PersonSelected(ByVal Person) Public Sub RecordSelected(ByVal Record) End Sub Sub Main() 'Contravariance Dim personPicked As PersonSelected = AddressOf RecordSelected End Sub

Contact Twitter

References Overview of C# us/library/bb aspx#csharp3.0overview_topic1 us/library/bb aspx#csharp3.0overview_topic1 Overview of Visual Basic us/library/ms364068(vs.80).aspx#vb9overview_topic1 us/library/ms364068(vs.80).aspx#vb9overview_topic1 Programming C# 3.0 Jesse Liberty & Donald Xie, O’Reily The LINQ Project us/netframework/aa aspx us/netframework/aa aspx