Vous êtes sur la page 1sur 15

Visual Basic.

Net 2008 New Language Features


Andrew Novick

www.NovickSoftware.com

Agenda

Timeline Conditional Operator Extension Methods Object Initializers Nullable Types Type Inference Lambda Expressions LINQ Language Integrated Query Linq to SQL XML Features
Visual Basic 2008 Language Features

Copyright 2008 Andrew Novick Novick Software, Inc.

Introduction

Andrew Novick Novick Software, Inc. Business Application Development Consulting

SQL Server .Net

www.NovickSoftware.com Books:

Transact-SQL UDFs SQL 2000 XML Distilled

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

Timeline

1998 2002 2003 2005 2007


VS 6 VS2002 VS2003 VS2005 VS2008

20??

VB6

VB7

VB8

VB9 VBX
.Net 3.5

CLR 1.0 CLR 1.1

CLR 2.0

DLR

Copyright 2008 Andrew Novick Novick Software, Inc.

.Net 3.0 W*F Visual Basic 2008 Language Features

Conditional Operator

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

Nullable Value Types

Exist in VB 2005

Dim X as Nullable (Of Integer)

New Syntax

Dim X? as Integer

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

Type Inference
Return of the

Variant
Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

Other Features

Partial Methods Relaxed Delegates Closures

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

LINQ

LINQ Query syntax as part of VB & C# LINQ to.

Objects SQL XML Amazon Entity Framework Any IEnumerable

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

LINQ to Data
Your Application VB.Net 2008 VB 9 C# 3.0

LINQ to Objects

LINQ to DataSets

LINQ to SQL

LINQ to Entities

LINQ to XML

Database SQL Server


Copyright 2008 Andrew Novick Novick Software, Inc.

The Cloud

Visual Basic 2008 Language Features

LINQ-to-SQL Layering
Your Application

LINQ to SQL API/Services

LINQ to SQL Provider ADO.Net Provider

Database SQL Server


Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

XML Features

XML is now part of VB Templates allow embedding of VB expressions Linq can query XML, replacing XPath

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

LinqPad

http://www.linqpad.net/
Joseph Albahari

C# 3.0 in a Nutshell OReilly

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

New England Visual Basic

Focused on VB.Net development Meetings @ MS Waltham MPR-C 1st Thursday - 6:15 to 8:30 Coming up:

May Heroes Happen Here Part 2


www.NEVB.com

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

Thanks for Coming

Andrew Novick

anovick@NovickSoftware.com

www.NovickSoftware.com

Copyright 2008 Andrew Novick Novick Software, Inc.

Visual Basic 2008 Language Features

Vous aimerez peut-être aussi