Click or drag to resize
AttributeTable Methods

The AttributeTable type exposes the following members.

Methods
  NameDescription
Public methodAdd(KeyValuePairObject, Object)
Adds the specified attribute pair (key/value) to the attribute table.
Public methodAdd(Object)
Adds the specified attribute pair (key/value) to the attribute table.
Public methodAdd(Object, Object)
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 methodClear
Clears the attribute table.
Public methodContains
Returns true if the passed key is mapped within this attribute table, and false otherwise.
Public methodDeserialize
Reads this object from its binary representation.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodEquals(AttributeTable)
Determines whether the specified AttributeTable is equal to the current AttributeTable.
Public methodGetEnumerator
Gets an enumerator over all attributes of this table.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetSchema
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
Public methodGetValue(Object)
Returns the attribute with the specified key. If no attribute is found, an exception is thrown.
Public methodGetValueT(Object)
Returns the attribute with the specified key casted to the specified type. If no attribute with the specified key is found or the attribute can't be casted to the specified type, an exception is thrown.
Public methodReadXml
Generates an object from its XML representation.
Public methodRemoveValue
Removes the passed key from this attribute table.
Public methodSerialize
Converts this object to its binary representation.
Public methodSetValue
Maps the passed key to the specified value in this attribute table, if it has already been mapped before.
Public methodTryGetValue
Tries to retrieve the value the passed key is mapped to within this attribute table.
Public methodWriteXml
Converts an object into its XML representation.
Top
Extension Methods
  NameDescription
Public Extension MethodContainsAllKeyValuePairObject, Object
Checks whether the first sequence contains all elements of the second one.
(Defined by EnumerableExtensionMethods.)
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 MethodIsNullOrEmptyOverloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodIsNullOrEmptyKeyValuePairObject, ObjectOverloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemKeyValuePairObject, Object
Returns a random item from the specified sequence.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemOrDefaultKeyValuePairObject, ObjectOverloaded.
Returns a random item from the specified sequence or the default value of the specified type if the sequence is null or empty.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemOrDefaultKeyValuePairObject, Object(KeyValuePairObject, Object)Overloaded.
Returns a random item from the specified sequence or the specified default value if the sequence is null or empty.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomSelectKeyValuePairObject, ObjectOverloaded.
Selects a random item from the specified enumerable.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomSelectKeyValuePairObject, Object(Int32)Overloaded.
Selects the specified number of random items from the specified enumerable. If the number of items in the enumerable is smaller than the specified number of selections, the enumerable itself is returned.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomSelectKeyValuePairObject, Object(Int32, ActionKeyValuePairObject, Object)Overloaded.
Executes the specified action for the specified number of random items from the specified enumerable.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomWeightedItemKeyValuePairObject, Object
Returns a random weighted item from the specified sequence. Uses the specified function to get the weight of an item. Idea was taken from http://stackoverflow.com/questions/17912005/quick-way-of-selecting-a-random-item-from-a-list-with-varying-probabilities-ba
(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