![]() | AttributeTable Methods |
The AttributeTable type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add(KeyValuePairObject, Object) |
Adds the specified attribute pair (key/value) to the attribute table.
|
![]() | Add(Object) |
Adds the specified attribute pair (key/value) to the attribute table.
|
![]() | Add(Object, Object) |
Maps the passed key to the specified value in this attribute table,
if it hasn't already been mapped before.
|
![]() | AddRange |
Adds all content of the passed attribute table to this one.
|
![]() | AddValue |
Maps the passed key to the specified value in this attribute table,
if it hasn't already been mapped before.
|
![]() | Clear |
Clears the attribute table.
|
![]() | Contains |
Returns true if the passed key is mapped within this
attribute table, and false otherwise.
|
![]() | Deserialize |
Reads this object from its binary representation.
|
![]() | Equals(Object) | (Overrides ObjectEquals(Object).) |
![]() | Equals(AttributeTable) |
Determines whether the specified AttributeTable is equal to the current AttributeTable.
|
![]() | GetEnumerator |
Gets an enumerator over all attributes of this table.
|
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.) |
![]() | GetSchema |
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.
|
![]() | GetValue(Object) |
Returns the attribute with the specified key.
If no attribute is found, an exception is thrown.
|
![]() | GetValueT(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.
|
![]() | ReadXml |
Generates an object from its XML representation.
|
![]() | RemoveValue |
Removes the passed key from this attribute table.
|
![]() | Serialize |
Converts this object to its binary representation.
|
![]() | SetValue |
Maps the passed key to the specified value in this attribute table,
if it has already been mapped before.
|
![]() | TryGetValue |
Tries to retrieve the value the passed key is mapped to within this
attribute table.
|
![]() | WriteXml |
Converts an object into its XML representation.
|
Name | Description | |
---|---|---|
![]() | ContainsAllKeyValuePairObject, Object |
Checks whether the first sequence contains all elements of the second one.
(Defined by EnumerableExtensionMethods.) |
![]() | GetBoolOrDefault |
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.) |
![]() | GetEnumOrDefault |
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.) |
![]() | GetFloatOrDefault |
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.) |
![]() | GetIntOrDefault |
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.) |
![]() | GetValueOrDefaultT |
Tries to get the value of the attribute with the specified key. If not found,
the specified default value is returned.
(Defined by AttributeTableExtensions.) |
![]() | IsNullOrEmpty | Overloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.) |
![]() | IsNullOrEmptyKeyValuePairObject, Object | Overloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomItemKeyValuePairObject, Object |
Returns a random item from the specified sequence.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomItemOrDefaultKeyValuePairObject, Object | Overloaded.
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.) |
![]() | RandomItemOrDefaultKeyValuePairObject, 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.) |
![]() | RandomSelectKeyValuePairObject, Object | Overloaded.
Selects a random item from the specified enumerable.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomSelectKeyValuePairObject, 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.) |
![]() | RandomSelectKeyValuePairObject, Object(Int32, ActionKeyValuePairObject, Object) | Overloaded.
Executes the specified action for the specified number of random items from the specified enumerable.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomWeightedItemKeyValuePairObject, 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.) |
![]() | TryGetBool |
Tries to get an boolean value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.) |
![]() | TryGetFloat |
Tries to get a float value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.) |
![]() | TryGetInt |
Tries to get an int value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.) |
![]() | TryGetValue(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.) |
![]() | TryGetValueT(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.) |