Interface ISectionCollection
Namespace: Experior.Interfaces.Collections
Assembly: Experior.Interfaces.dll
Syntax
public interface ISectionCollection
Properties
Item[String]
Gets or sets the element with the specified key.
Declaration
ISection this[string key] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Property Value
Type | Description |
---|---|
ISection | Section. |
Keys
Gets an System.Collections.Generic.IReadOnlyCollection`{T}} containing the names of the available sections.
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 sections.
Declaration
IReadOnlyCollection<ISection> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<ISection> | The values. |
Methods
Add(ISection)
Adds a section to the global section list.
Declaration
void Add(ISection section)
Parameters
Type | Name | Description |
---|---|---|
ISection | section | The section. |
Any()
Declaration
bool Any()
Returns
Type | Description |
---|---|
System.Boolean |
Clear()
Declaration
void Clear()
Clear(ClearFilter, Boolean)
Declaration
void Clear(ClearFilter filter, bool createDefault)
Parameters
Type | Name | Description |
---|---|---|
ClearFilter | filter | |
System.Boolean | createDefault |
Clear(Boolean)
Declaration
void Clear(bool createDefault)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | createDefault |
Contains(ISection)
Determines whether the specified value contains value.
Declaration
bool Contains(ISection section)
Parameters
Type | Name | Description |
---|---|---|
ISection | section |
Returns
Type | Description |
---|---|
System.Boolean |
|
ContainsKey(String)
Determines whether the System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the specified key.
Declaration
bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to locate in the System.Collections.Generic.IDictionary<TKey, TValue>. |
Returns
Type | Description |
---|---|
System.Boolean | true if the System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the key; otherwise, false. |
Count()
Gets the number of sections.
Declaration
int Count()
Returns
Type | Description |
---|---|
System.Int32 | The count. |
Count(Func<ISection, Boolean>)
Gets the number of sections matching the predicate.
Declaration
int Count(Func<ISection, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<ISection, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
System.Int32 | The count. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
IEnumerator<ISection> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ISection> | A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
Remove(ISection)
Declaration
bool Remove(ISection section)
Parameters
Type | Name | Description |
---|---|---|
ISection | section |
Returns
Type | Description |
---|---|
System.Boolean |
TryGetValue(String, out ISection)
Tries to get a value.
Declaration
bool TryGetValue(string key, out ISection value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
ISection | value | The value. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Update()
Declaration
void Update()
Events
OnItemsAdded
Raised when section(s) are added to the collection.
Declaration
event EventHandler<SectionCollectionChangedEventArgs> OnItemsAdded
Event Type
Type | Description |
---|---|
System.EventHandler<SectionCollectionChangedEventArgs> |
OnItemsRemoved
Raised when section(s) are removed from the collection.
Declaration
event EventHandler<SectionCollectionChangedEventArgs> OnItemsRemoved
Event Type
Type | Description |
---|---|
System.EventHandler<SectionCollectionChangedEventArgs> |