Interface ILabeled
Used by LabelSelector<TItem> to retrieve the label dictionary for a specific item. Labels are simply key/value pairs assigned to an object and LabelSelector<TItem> can be used to select items based on their assigned labels.
Namespace: Neon.Common
Assembly: Neon.Common.dll
Syntax
public interface ILabeled
Methods
GetLabels()
Returns the label dictionary for the instance. These are simply key/value
pairs where the key is the label name. You may return null
to indicate
that there are not labels.
Declaration
IDictionary<string, string> GetLabels()
Returns
Type | Description |
---|---|
IDictionary<string, string> | The label dictionary or |
Remarks
Label names may be treated as case sensitive or insentive based on how the underlying dictionary returned was constructed. Generally though, labels are considered to be case insensitive so you should probably use InvariantCultureIgnoreCase when constructing your dictionaries.