UtilityEx.GetEntitiesByType Method

Get a list of entities by type.
Public Shared Function GetEntitiesByType( _ 
ByVal entityList As IList(Of Entity), _ 
ByVal blocks As Dictionary(Of String, Block), _ 
Optional ByVal includedTypes As List(Of Type) = null _ 
) As Dictionary(Of Type, IList(Of Entity))
This language is not supported or no code example is available.
public static Dictionary<Type, IList<Entity>> GetEntitiesByType( 
IList<Entity> entityList
Dictionary<string, Block> blocks
List<Type> includedTypes = null 
)
This language is not supported or no code example is available.

Parameters

entityList
IList<Entity>

The collection of entities.

blocks
Dictionary<string, Block>

The blocks to process.

includedTypes
List<Type>

If not null then it will consider only the entities which match these types.

Return Value

Dictionary<Type, IList<Entity>>

The dictionary with the collection of entities for each entity's type.

.NET Framework

Supported in: 4.8

In this article

Definition