Click or drag to resize
IAttributeTable Interface
Table that allows storing and looking up attributes and their respective values.

Namespace: Slash.Collections.AttributeTables
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public interface IAttributeTable : IEnumerable

The IAttributeTable type exposes the following members.

Properties
  NameDescription
Public propertyCount
Returns the number of attributes in the attribute table.
Public propertyItem
Returns or sets the attribute with the specified key. If no attribute is found when it should be returned, an exception is thrown.
Top
Methods
  NameDescription
Public methodAdd
Maps the passed key to the specified value in this attribute table, if it hasn't already been mapped before.
Public methodAddRange
Adds all content of the passed attribute table to this one.
Public methodAddValue
Maps the passed key to the specified value in this attribute table, if it hasn't already been mapped before.
Public methodContains
Returns true if the passed key is mapped within this attribute table, and false otherwise.
Public methodGetValue
Returns the attribute with the specified key. If no attribute is found, an exception is thrown.
Public methodRemoveValue
Removes the passed key from this attribute table.
Public methodSetValue
Puts the attribute with the specified key and value into the attribute table. If already existing in attribute table, the current value is overwritten.
Public methodTryGetValue
Tries to retrieve the value the passed key is mapped to within this attribute table.
Top
Extension Methods
  NameDescription
Public Extension MethodGetBoolOrDefault
Tries to get the boolean value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetEnumOrDefault
Tries to get the enum value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetFloatOrDefault
Tries to get the float value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetIntOrDefault
Tries to get the int value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetValueOrDefaultT
Tries to get the value of the attribute with the specified key. If not found, the specified default value is returned.
(Defined by AttributeTableExtensions.)
Public Extension MethodIsNullOrEmpty
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodTryGetBool
Tries to get an boolean value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetFloat
Tries to get a float value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetInt
Tries to get an int value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetValue(Object, Type, Object)Overloaded.
Tries to retrieve the value the passed key is mapped to within this attribute table and expects the specified type.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetValueT(Object, T)Overloaded.
Tries to retrieve the value the specified key is mapped to within this attribute table. Additionally checks that the type of the value is correct. Only classes are allowed as the method wouldn't be AOT compatible otherwise.
(Defined by AttributeTableExtensions.)
Top
See Also