AliveTypeExtensions.CreateEntity Method

NOTE: This member is now obsolete. Use objectSpace.Xafari().CreateObject() method instead.

Creates the instance of entity entityType.

Namespace: Xafari
Assembly: Xafari.BC (in Xafari.BC.dll)

  • c#
  • VB

[Obsolete("Use objectSpace.Xafari().CreateObject() method instead.")] public static object CreateEntity( this IObjectSpace objectSpace, Type entityType )

<Obsolete("Use objectSpace.Xafari().CreateObject() method instead.")> _
<System.Runtime.CompilerServices.Extension> _
Public Shared Function CreateEntity(ByVal objectSpace As IObjectSpace, ByVal entityType As Type) As Object
End Function

Finds the real entity type and create the instance of founded type.

.NET Framework Client Profile

Supported in: 4, 3.5 SP1