Class TableSource<TKey, TValue>
A selector with assignment and a specification.
Inheritance
System.Object
TableSource<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: ExtendedXmlSerializer.Core.Sources
Assembly: ExtendedXmlSerializer.dll
Syntax
public class TableSource<TKey, TValue> : ITableSource<TKey, TValue>, ISpecification<TKey>, IParameterizedSource<TKey, TValue>, IAssignable<TKey, TValue>
Type Parameters
TKey
The key type. |
TValue
The value type. |
Constructors
TableSource()
Declaration
public TableSource()
TableSource(IDictionary<TKey, TValue>)
Creates a new instance.
Declaration
public TableSource(IDictionary<TKey, TValue> store)
Parameters
System.Collections.Generic.IDictionary<TKey, TValue>
store
|
TableSource(IEqualityComparer<TKey>)
Declaration
public TableSource(IEqualityComparer<TKey> comparer)
Parameters
System.Collections.Generic.IEqualityComparer<TKey>
comparer
|
Methods
Assign(TKey, TValue)
Assigns a value with the associated key.
Declaration
public void Assign(TKey key, TValue value)
Parameters
TKey
key
The key. |
TValue
value
The value. |
Implements
Get(TKey)
Performs the selection.
Declaration
public virtual TValue Get(TKey parameter)
Parameters
TKey
parameter
|
Returns
TValue
A value of the return type. |
Implements
IsSatisfiedBy(TKey)
Returns a boolean based on the provided parameter.
Declaration
public bool IsSatisfiedBy(TKey parameter)
Parameters
TKey
parameter
|
Returns
System.Boolean
The condition based on the provided parameter. |
Implements
Remove(TKey)
Removes the value (if any) found with the specified key.
Declaration
public bool Remove(TKey key)
Parameters
TKey
key
The key used to query. |
Returns
System.Boolean
Result of removal. |