Click or drag to resize

ResDictT Class

Represents a dictionary which can quickly look up IResData instances of type T via key or index.
Inheritance Hierarchy
SystemObject
  Syroot.NintenTools.BfresResDict
    Syroot.NintenTools.BfresResDictT

Namespace:  Syroot.NintenTools.Bfres
Assembly:  Syroot.NintenTools.Bfres (in Syroot.NintenTools.Bfres.dll) Version: 1.2.1
Syntax
C#
public sealed class ResDict<T> : ResDict, 
	IEnumerable<KeyValuePair<string, T>>, IEnumerable
where T : new(), IResData

Type Parameters

T
The specialized type of the IResData instances.

The ResDictT type exposes the following members.

Constructors
  NameDescription
Public methodResDictT
Initializes a new instance of the ResDictT class.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of instances stored.
(Inherited from ResDict.)
Public propertyItemInt32
Gets or sets the value stored at the specified index.
Public propertyItemString
Gets or sets the value stored under the specified key.
Public propertyKeys
Gets all keys under which instances are stored.
(Inherited from ResDict.)
Public propertyValues
Gets all stored instances.
Top
Methods
  NameDescription
Public methodAdd
Adds the given value under the specified key.
Public methodClear
Removes all elements from the dictionary.
(Inherited from ResDict.)
Public methodContainsKey
Determines whether an instance is saved under the given key in the dictionary.
(Inherited from ResDict.)
Public methodContainsValue
Determines whether the given value is in the dictionary.
Public methodGetEnumerator
Returns a generic IEnumerator which can be used to iterate over the items in the dictionary.
Public methodIndexOf(String)
Searches for the specified key and returns the zero-based index of the first occurrence within the entire dictionary.
(Inherited from ResDict.)
Public methodIndexOf(T)
Searches for the specified value and returns the zero-based index of the first occurrence within the entire dictionary.
Public methodRemove(String)
Removes the first occurrence of the instance with the specific key from the dictionary.
(Inherited from ResDict.)
Public methodRemove(T)
Removes the first occurrence of a specific value from the dictionary.
Public methodRemoveAt
Removes the instance at the specified index of the dictionary.
(Inherited from ResDict.)
Public methodRename
Changes the key of the instance currently saved under the given key to the newKey.
(Inherited from ResDict.)
Public methodToArray
Public methodTryGetKey
Returns true if a key was found for the given value and has been assigned to key, or false if no key was found for the value and null was assigned to key.
Public methodTryGetValue
Returns true if an instance was stored under the given key and has been assigned to value, or false if no instance is stored under the given key and null was assigned to value.
Top
See Also