LargeComponentInfoSet Class
Implementation of IComponentInfoSet which is based on DictionaryTKey, TValue.
Performance of
Add(IComponentInfo) method implemented here is O(log(N)) which is achieved by cost of memory.
This implementation should be used in scenarios where the number of items may be large and new items are added intensively.
Namespace: SMath.Extensibility.CollectionsAssembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
public class LargeComponentInfoSet : IComponentInfoSet,
IEnumerable<IComponentInfo>, IEnumerable
Public Class LargeComponentInfoSet
Implements IComponentInfoSet, IEnumerable(Of IComponentInfo),
IEnumerable
public ref class LargeComponentInfoSet : IComponentInfoSet,
IEnumerable<IComponentInfo^>, IEnumerable
type LargeComponentInfoSet =
class
interface IComponentInfoSet
interface IEnumerable<IComponentInfo>
interface IEnumerable
end
- Inheritance
- Object LargeComponentInfoSet
- 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) |