Tesla Graphics Engine Documentation (January 2012)
TeslaDictionary<(Of <(<'TKey, TValue>)>)> Class
TeslaTesla.CollectionsTeslaDictionary<(Of <(<'TKey, TValue>)>)>
A Dictionary that manages its own read-only version of itself, rather than creating a new one each time AsReadonly() is called. The read-only version is only created when first requested, and uses the existing data to read from. This is useful if you want the function of a Dictionary, but be able to limit it to read-only outside of its manager/owner.
Declaration Syntax
C#
public sealed class TeslaDictionary<TKey, TValue> : Dictionary<TKey, TValue>
Generic Template Parameters
TKey
The type of keys in the collection.
TValue
The type of values in the collection.
Members
All Members Constructors Methods Properties



Icon Member Description
TeslaDictionary<(Of <(<'TKey, TValue>)>)>()()()()
Creates a new instance of TeslaDictionary<(Of <(<'TKey, TValue>)>)>.

TeslaDictionary<(Of <(<'TKey, TValue>)>)>(Int32)
Creates a new instance of TeslaDictionary<(Of <(<'TKey, TValue>)>)>.

TeslaDictionary<(Of <(<'TKey, TValue>)>)>(IEqualityComparer<(Of <<'(TKey>)>>))
Creates a new instance of TeslaDictionary<(Of <(<'TKey, TValue>)>)>.

Add(TKey, TValue)
Adds the specified key and value to the dictionary.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
AsReadOnly()()()()
Returns a read-only version of this dictionary.

Clear()()()()
Removes all keys and values from the Dictionary<(Of <(<'TKey, TValue>)>)>.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
Comparer
Gets the IEqualityComparer<(Of <(<'T>)>)> that is used to determine equality of keys for the dictionary.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
ContainsKey(TKey)
Determines whether the Dictionary<(Of <(<'TKey, TValue>)>)> contains the specified key.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
ContainsValue(TValue)
Determines whether the Dictionary<(Of <(<'TKey, TValue>)>)> contains a specific value.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
Count
Gets the number of key/value pairs contained in the Dictionary<(Of <(<'TKey, TValue>)>)>.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetEnumerator()()()()
Returns an enumerator that iterates through the Dictionary<(Of <(<'TKey, TValue>)>)>.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetObjectData(SerializationInfo, StreamingContext)
Implements the ISerializable interface and returns the data needed to serialize the Dictionary<(Of <(<'TKey, TValue>)>)> instance.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Item[([( TKey])])
Gets or sets the value associated with the specified key.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
Keys
Gets a collection containing the keys in the Dictionary<(Of <(<'TKey, TValue>)>)>.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
OnDeserialization(Object)
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
Remove(TKey)
Removes the value with the specified key from the Dictionary<(Of <(<'TKey, TValue>)>)>.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
TryGetValue(TKey, TValue%)
Gets the value associated with the specified key.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
Values
Gets a collection containing the values in the Dictionary<(Of <(<'TKey, TValue>)>)>.
(Inherited from Dictionary<(Of <(<'TKey, TValue>)>)>.)
Inheritance Hierarchy
Object
Dictionary < (Of < ( <' TKey , TValue>)>)>
  TeslaDictionary<(Of <(<'TKey, TValue>)>)>

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)