What's New in the Visual Basic Compiler

This topic describes the new compiler options and other compiler changes included in Visual Basic 2008.

Friend Assemblies

You can now make members marked as Friend available to other assemblies by identifying the other assemblies as Friend assemblies. You use the InternalsVisibleToAttribute attribute to identify one or more Friend assemblies for your assembly. This applies to both signed and unsigned assemblies. For more information, see Friend Assemblies (Visual Basic).

New Command-Line Options

Visual Basic 2008 includes two new compiler options:

Relaxed Delegate Conversion

Relaxed delegate conversion enables you to assign subs and functions to delegates or handlers even when the signatures are not identical. This change makes binding to delegates consistent with the binding allowed in method invocations. For more information, see Relaxed Delegate Conversion.

See Also


What's New in the Visual Basic Language

Change History




July 2008

Added section about relaxed delegate conversion.

Information enhancement.