Show / Hide Table of Contents

    Interface IReadOnlyConfigurationCollection<TElement>

    Represents a read-only collection of values stored in a property. Use the interface for properties representing an arbitrary number of the same kind of object identified by index. Items cannot be added or removed.

    Inherited Members
    IConfigurationCollection<TElement>.AddCopy(TElement)
    IConfigurationCollection<TElement>.AddNew()
    System.Collections.Generic.IList<TElement>.IndexOf(TElement)
    System.Collections.Generic.IList<TElement>.Insert(System.Int32, TElement)
    System.Collections.Generic.IList<TElement>.RemoveAt(System.Int32)
    System.Collections.Generic.IList<TElement>.Item[System.Int32]
    System.Collections.Generic.ICollection<TElement>.Add(TElement)
    System.Collections.Generic.ICollection<TElement>.Clear()
    System.Collections.Generic.ICollection<TElement>.Contains(TElement)
    System.Collections.Generic.ICollection<TElement>.CopyTo(TElement[], System.Int32)
    System.Collections.Generic.ICollection<TElement>.Remove(TElement)
    System.Collections.Generic.ICollection<TElement>.Count
    System.Collections.Generic.ICollection<TElement>.IsReadOnly
    System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged
    IConfigurationObject.IsDirty
    IConfigurationObject.Delete()
    IConfigurationObject.Load()
    IConfigurationObject.Save()
    System.IDisposable.Dispose()
    System.ComponentModel.INotifyPropertyChanged.PropertyChanged
    System.Collections.Generic.IEnumerable<TElement>.GetEnumerator()
    Namespace: OpenCollar.Extensions.Configuration
    Assembly: OpenCollar.Extensions.Configuration.dll
    Syntax
    public interface IReadOnlyConfigurationCollection<TElement> : IConfigurationCollection<TElement>, IList<TElement>, ICollection<TElement>, INotifyCollectionChanged, IConfigurationObject, IDisposable, INotifyPropertyChanged, IReadOnlyCollection<TElement>, IEnumerable<TElement>, IEnumerable
    Type Parameters
    Name Description
    TElement

    The type of the collection element. This must be nullable if the type is a reference type and can be null.

    Remarks

    The following UML has been generated directly from the source code using Jebbs PlantUML .

    Examples

    In the example below a property on an interface is defined as containing an arbitray number of strings.

    IReadOnlyConfigurationCollection<string> Names
    {
    get; set;
    }

    If the configuration is specified in a JSON configuration file it would look something like this:

    {
    "Names": [
        "Value 1",
        "Value 2",
        "Value 3"
    ]
    }

    See Also

    System.Collections.Generic.IReadOnlyCollection`1
    IConfigurationCollection<TElement>
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2019-2020 Jonathan Evans
    Version: 0.2.232