Interface IIndexedProperties<TContainer>
This interface provides access to an IProperty<TContainer> of a IPropertyBag<TContainer> by index.
Namespace: Unity.Properties
Syntax
public interface IIndexedProperties<TContainer>
Type Parameters
Name | Description |
---|---|
TContainer | The container type to access. |
Methods
TryGetProperty(ref TContainer, Int32, out IProperty<TContainer>)
Gets the property associated with the specified index.
Declaration
bool TryGetProperty(ref TContainer container, int index, out IProperty<TContainer> property)
Parameters
Type | Name | Description |
---|---|---|
TContainer | container | The container hosting the data. |
Int32 | index | The index of the property to get. |
IProperty<TContainer> | property | When this method returns, contains the property associated with the specified index, if the name is found; otherwise, null. |
Returns
Type | Description |
---|---|
Boolean | true if the IIndexedProperties<TContainer> contains a property for the specified index; otherwise, false. |