Class EntityCollection
Inheritance
System.Object
EntityCollection
Implements
System.Collections.Generic.ICollection<
IEntity>
System.Collections.Generic.IEnumerable<
IEntity>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syn.Bot.dll
Syntax
public class EntityCollection : ICollection<IEntity>, IEnumerable<IEntity>, IEnumerable
Constructors
EntityCollection()
Declaration
public EntityCollection()
EntityCollection(IEnumerable<IEntity>)
Declaration
public EntityCollection(IEnumerable<IEntity> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IEntity> |
entities |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
Item[Int32]
Declaration
public IEntity this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
Add(IEntity)
Declaration
public void Add(IEntity item)
Parameters
AddRange(IEnumerable<IEntity>)
Declaration
public void AddRange(IEnumerable<IEntity> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IEntity> |
entities |
|
AllOfType(String)
Declaration
public List<IEntity> AllOfType(string entityName)
Parameters
Type |
Name |
Description |
System.String |
entityName |
|
Returns
Type |
Description |
System.Collections.Generic.List<IEntity> |
|
AllOfType<T>()
Declaration
public List<T> AllOfType<T>()
where T : IEntity
Returns
Type |
Description |
System.Collections.Generic.List<T> |
|
Type Parameters
AllOfType<T>(String)
Declaration
public List<T> AllOfType<T>(string entityType)
where T : IEntity
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
Returns
Type |
Description |
System.Collections.Generic.List<T> |
|
Type Parameters
Clear()
Declaration
Clone()
Declaration
public EntityCollection Clone()
Returns
Contains(IEntity)
Declaration
public bool Contains(IEntity item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Contains(String)
Declaration
public bool Contains(string entityType)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
Returns
Type |
Description |
System.Boolean |
|
CopyTo(IEntity[], Int32)
Declaration
public void CopyTo(IEntity[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
IEntity[] |
array |
|
System.Int32 |
arrayIndex |
|
GetEnumerator()
Declaration
public IEnumerator<IEntity> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<IEntity> |
|
IndexOf(IEntity)
Declaration
public int IndexOf(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
Returns
Type |
Description |
System.Int32 |
|
IndexOf(String)
Declaration
public int IndexOf(string entityType)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
Returns
Type |
Description |
System.Int32 |
|
OfCompositeType(String)
Declaration
public ICompositeEntity OfCompositeType(string entityType)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
Returns
OfType(String)
Declaration
public IEntity OfType(string entityType)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
Returns
OfType<T>()
Declaration
public T OfType<T>()
where T : IEntity
Returns
Type Parameters
OfType<T>(String)
Declaration
public T OfType<T>(string entityType)
where T : IEntity
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
Returns
Type Parameters
Remove(IEntity)
Declaration
public bool Remove(IEntity item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Remove(String)
Declaration
public bool Remove(string entityType)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable