Visual Basic.Net 2008 New Language Features

beansproutscompleteSoftware and s/w Development

Dec 13, 2013 (3 years and 3 months ago)

73 views

Visual Basic.Net 2008

New Language Features

Andrew Novick



www.NovickSoftware.com


© Copyright 2008 Andrew Novick

Novick Software, Inc.

Visual Basic 2008 Language Features

Agenda


Timeline


Conditional Operator


Extension Methods


Object Initializers


Nullable Types


Type Inference


Lambda Expressions


LINQ


Language Integrated Query


Linq to SQL


XML Features


© Copyright 2008 Andrew Novick

Novick Software, Inc.

Visual Basic 2008 Language Features

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

VB6

VB7

VB8

VB9

VBX

1998

2002

2003

2005

2007

20??

CLR 1.0

CLR 1.1

CLR 2.0

.Net

3.0

W*F

.Net

3.5

DLR

VS2002

VS2003

VS2005

VS2008

VS 6

© Copyright 2008 Andrew Novick

Novick Software, Inc.

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

Your

Application

LINQ to Data

C#

3.0

VB.Net 2008

VB 9

LINQ to

Objects

LINQ to

DataSets

LINQ to

SQL

LINQ to

Entities

LINQ to

XML

Database

SQL Server

The
Cloud

© Copyright 2008 Andrew Novick

Novick Software, Inc.

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



O’Reilly


© 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