.NET Framework 4.0

C# v4.0 - Visual Studio 2010

Optional Parameters

More Details

Named Parameters

More Details

Late Binding - dynamic

More Details

Parameterized Properties

This also includes Indexed Properties
More Details


More Details

Embedded PIAs

These can be embedded into your assembly so that you don't have to deploy them alongside your application
This means that my application is now independent of the version of excel that is installed on a machine.
This automatically includes all the PIA type references used in the project and therefore removes the need to install the PIA prior to deployment Include a screen shot of this for the Excel PIA
There is an "Embed Interop Type" property associated with each interop reference assembly


Double can hold 16 bit values but BigInteger has no minimum size or maximum size
You cannot use the Math class with BigInteger

Complex Numbers



A tuple is a data structure that has a specific number and sequence of elements
The framework directly supports tuples with one to seven elements
You can create tuples of either or more elements by nesting tuple objects in the Rest property

Dynamic Support

Dynamic language runtime ?

Lazy <T>

Lazy instantiation defers the creation of an object until it is actually accessed.
Object creation is always expensive because it involves allocation of memory on the heap

SortedSet Collection

Represents a collection of objects that are maintained in a sorted order


These are much more powerful than the Backgroundworker
partitioning of the work,
taking care of state management,
scheduling threads on the thread pool,
using callback methods
enabling continuation or cancellation of tasks.

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext