SmallComponentInfoSet Class
Implementation of IComponentInfoSet which is based on unsorted ListT.
Performance of
Add(IComponentInfo) method implemented here is O(N).
This implementation should be used in scenarios where the number of items is small (1-5) so it is better to optimize memory usage rather than performance.
Namespace: SMath.Extensibility.CollectionsAssembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
public class SmallComponentInfoSet : IComponentInfoSet,
IEnumerable<IComponentInfo>, IEnumerable
Public Class SmallComponentInfoSet
Implements IComponentInfoSet, IEnumerable(Of IComponentInfo),
IEnumerable
public ref class SmallComponentInfoSet : IComponentInfoSet,
IEnumerable<IComponentInfo^>, IEnumerable
type SmallComponentInfoSet =
class
interface IComponentInfoSet
interface IEnumerable<IComponentInfo>
interface IEnumerable
end
- Inheritance
- Object SmallComponentInfoSet
- Implements
- IComponentInfoSet, IEnumerableIComponentInfo, IEnumerable
| Add |
Adds an item to the set.
If an item with the specified PublicGuid already exists then Version is checked:
when Version of the existing item is newer or equal then no change is made, otherwise the existing item is replaced.
|
| AddRange |
Repeats Add(IComponentInfo) for all specified items.
|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetEnumerator | Returns an enumerator that iterates through the collection. |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ReplaceContents |
Replaces all items in this set with items of the specified set.
Using IComponentInfoSet as type of source argument guarantees that items being added are unique.
|
| ToString | Returns a string that represents the current object. (Inherited from Object) |