Interface IEntityCollection<T>
Abstract representation of a collection of GTFS-entities that can be uniquely identified by an ID and of a single type.
Inherited Members
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IEntityCollection<T> : IEnumerable<T>, IEnumerable where T : GTFSEntity
Type Parameters
T
|
Methods
Add(T)
Adds an entity.
Declaration
void Add(T entity)
Parameters
T
entity
|
AddRange(IEntityCollection<T>)
Adds range of entities
Declaration
void AddRange(IEntityCollection<T> entities)
Parameters
IEntityCollection<T>
entities
|
Get()
Returns all entities.
Declaration
IEnumerable<T> Get()
Returns
System.Collections.Generic.IEnumerable<T>
|
Get(List<String>)
Returns the entities for the given id's.
Declaration
IEnumerable<T> Get(List<string> entityIds)
Parameters
System.Collections.Generic.List<System.String>
entityIds
|
Returns
System.Collections.Generic.IEnumerable<T>
|
Get(String)
Returns all entities for the given id.
Declaration
IEnumerable<T> Get(string entityId)
Parameters
System.String
entityId
|
Returns
System.Collections.Generic.IEnumerable<T>
|
GetIds()
Returns all entity ids.
Declaration
IEnumerable<string> GetIds()
Returns
System.Collections.Generic.IEnumerable<System.String>
|
Remove(String)
Removes all entities identified by the given id.
Declaration
bool Remove(string entityId)
Parameters
System.String
entityId
|
Returns
System.Boolean
|
RemoveAll()
Removes all entities
Declaration
void RemoveAll()
RemoveRange(IEnumerable<String>)
Removes a range of entities by their IDs
Declaration
void RemoveRange(IEnumerable<string> entityIds)
Parameters
System.Collections.Generic.IEnumerable<System.String>
entityIds
|