Interface IGorgonNamedObjectReadOnlyList<T>
A generic interface for a read only list of named objects that can be indexed by name and numeric index.
Inherited Members
Namespace: Gorgon.Collections
Assembly: Gorgon.Core.dll
Syntax
public interface IGorgonNamedObjectReadOnlyList<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : IGorgonNamedObject
Type Parameters
Name | Description |
---|---|
T | The type of object stored in the collection. Must implement the IGorgonNamedObject interface. |
Properties
| Edit this page View Sourcethis[string]
Property to return an item in this list by its name.
Declaration
T this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
string | name |
Property Value
Type | Description |
---|---|
T |
KeysAreCaseSensitive
Property to return whether the keys are case sensitive.
Declaration
bool KeysAreCaseSensitive { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceContains(string)
Function to return whether an item with the specified name exists in this collection.
Declaration
bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the item to find. |
Returns
Type | Description |
---|---|
bool | true if found, false if not. |
Contains(T)
Determines whether the list contains a specific value.
Declaration
bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The object to locate in the list. |
Returns
Type | Description |
---|---|
bool | true if |
IndexOf(string)
Determines the index of a specific item in the list.
Declaration
int IndexOf(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the item to find. |
Returns
Type | Description |
---|---|
int | The index of |
IndexOf(T)
Determines the index of a specific item in the list.
Declaration
int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The object to locate in the list. |
Returns
Type | Description |
---|---|
int | The index of |