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

.NET Framework (current version)

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