Class RegistryBase<TKey, TValue>
Inheritance
System.Object
RegistryBase<TKey, TValue>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Catalyst.Abstractions.Registry
Assembly: Catalyst.Abstractions.dll
Syntax
public abstract class RegistryBase<TKey, TValue> : IRegistryBase<TKey, TValue>, IDisposable where TKey : Enumeration where TValue : class
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
Properties
| Improve this Doc View SourceRegistry
Declaration
protected IDictionary<TKey, TValue> Registry { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<TKey, TValue> |
Methods
| Improve this Doc View SourceAddItemToRegistry(TKey, TValue)
Declaration
public bool AddItemToRegistry(TKey identifier, TValue item)
Parameters
Type | Name | Description |
---|---|---|
TKey | identifier | |
TValue | item |
Returns
Type | Description |
---|---|
System.Boolean |
GetItemFromRegistry(TKey)
Declaration
public TValue GetItemFromRegistry(TKey identifier)
Parameters
Type | Name | Description |
---|---|---|
TKey | identifier |
Returns
Type | Description |
---|---|
TValue |
RegistryContainsKey(TKey)
Declaration
public bool RegistryContainsKey(TKey identifier)
Parameters
Type | Name | Description |
---|---|---|
TKey | identifier |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveItemFromRegistry(TKey)
Declaration
public bool RemoveItemFromRegistry(TKey identifier)
Parameters
Type | Name | Description |
---|---|---|
TKey | identifier |
Returns
Type | Description |
---|---|
System.Boolean |
Explicit Interface Implementations
| Improve this Doc View SourceIDisposable.Dispose()
Declaration
void IDisposable.Dispose()
Implements
System.IDisposable