ObjectSet<TEntity>.CreateObject<T> Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates an instance of the specified type.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public T CreateObject<T>()
where T : class, TEntity

Return Value

Type: T

An instance of the requested type T, or an instance of a proxy type that corresponds to the type T.

Type Parameters


Type of object to be returned.

.NET Framework
Available since 4.0
Return to top