Interface IAssemblyCollection
Inherited Members
System.Collections.Generic.ICollection<Experior.Interfaces.IAssembly>.Add(Experior.Interfaces.IAssembly)
System.Collections.Generic.ICollection<Experior.Interfaces.IAssembly>.Clear()
System.Collections.Generic.ICollection<Experior.Interfaces.IAssembly>.Contains(Experior.Interfaces.IAssembly)
System.Collections.Generic.ICollection<Experior.Interfaces.IAssembly>.CopyTo(Experior.Interfaces.IAssembly[], System.Int32)
System.Collections.Generic.ICollection<Experior.Interfaces.IAssembly>.Remove(Experior.Interfaces.IAssembly)
System.Collections.Generic.ICollection<Experior.Interfaces.IAssembly>.Count
System.Collections.Generic.ICollection<Experior.Interfaces.IAssembly>.IsReadOnly
System.Collections.Generic.IEnumerable<Experior.Interfaces.IAssembly>.GetEnumerator()
Assembly: Experior.Interfaces.dll
Syntax
public interface IAssemblyCollection : ICollection<IAssembly>, IEnumerable<IAssembly>, IEnumerable
Properties
Item[Int32]
Declaration
IAssembly this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Item[String]
Declaration
IAssembly this[string name] { get; }
Parameters
Type |
Name |
Description |
System.String |
name |
|
Property Value
Keys
Gets an System.Collections.Generic.IReadOnlyCollection`{T}} containing the names of the available assemblies.
Declaration
IReadOnlyCollection<string> Keys { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<System.String> |
The keys.
|
Values
Gets an System.Collections.Generic.IReadOnlyCollection`{T}} containing the available assemblies.
Declaration
IReadOnlyCollection<IAssembly> Values { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<IAssembly> |
The values.
|
Methods
Add(IAssembly, Boolean)
Adds the specified assembly.
Declaration
void Add(IAssembly assembly, bool incrementName)
Parameters
Type |
Name |
Description |
IAssembly |
assembly |
The assembly.
|
System.Boolean |
incrementName |
The name of the assembly is automatically generated - if the name of the name of the assembly contains a number it will be incremented
|
AddRange(IEnumerable<IAssembly>)
Add assemblies to the scene
Declaration
void AddRange(IEnumerable<IAssembly> assemblies)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IAssembly> |
assemblies |
The assemblies to add
|
Any()
Declaration
Returns
Type |
Description |
System.Boolean |
|
ContainsKey(String)
Declaration
bool ContainsKey(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Get(Func<IAssembly, Boolean>)
Declaration
IReadOnlyCollection<IAssembly> Get(Func<IAssembly, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<IAssembly, System.Boolean> |
predicate |
|
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<IAssembly> |
|
Get(String)
Declaration
IAssembly Get(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Get(Type)
Declaration
IReadOnlyCollection<IAssembly> Get(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<IAssembly> |
|
Get(UInt64)
Declaration
IAssembly Get(ulong entityid)
Parameters
Type |
Name |
Description |
System.UInt64 |
entityid |
|
Returns
OfType<T>()
Filters the list of assemblies based on a specified type.
Declaration
IReadOnlyCollection<T> OfType<T>()
where T : IAssembly
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<T> |
An System.Collections.Generic.IEnumerable<T> that contains elements from the input sequence of type T .
|
Type Parameters
Name |
Description |
T |
The type to filter the elements of the sequence on.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
|
RemoveRange(IEnumerable<IAssembly>)
Remove specified assemblies from assembly list (i.e. no rendering, no appearance in list, forms etc).
The assemblies will NOT be disposed by removing them from this list.
Declaration
bool RemoveRange(IEnumerable<IAssembly> assemblies)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IAssembly> |
assemblies |
|
Returns
Type |
Description |
System.Boolean |
true if successfully removed, otherwise false
|
TryGetAssembly(String, out IAssembly)
Declaration
bool TryGetAssembly(string name, out IAssembly assembly)
Parameters
Type |
Name |
Description |
System.String |
name |
|
IAssembly |
assembly |
|
Returns
Type |
Description |
System.Boolean |
|
Events
OnAssembliesAdded
Raised when assemblies are added to the collection.
Declaration
event EventHandler<AssemblyCollectionChangedEventArgs> OnAssembliesAdded
Event Type
OnAssembliesRemoved
Raised when assemblies are removed from the collection.
Declaration
event EventHandler<AssemblyCollectionChangedEventArgs> OnAssembliesRemoved
Event Type