Show / Hide Table of Contents

Class AccessDictionary<TKey, TValue, TKeyBase, TValueBase>

A wrapper for accessing the elements of an AccessDictionaryBase<TKey, TValue>

Inheritance
System.Object
AccessDictionaryBase<TKeyBase, TValueBase>
AccessDictionary<TKey, TValue, TKeyBase, TValueBase>
Implements
IReadOnlyCollection<KeyValuePair<TKeyBase, TValueBase>>
Inherited Members
AccessDictionaryBase<TKeyBase, TValueBase>.Capacity
AccessDictionaryBase<TKeyBase, TValueBase>.Count
AccessDictionaryBase<TKeyBase, TValueBase>.Keys
AccessDictionaryBase<TKeyBase, TValueBase>.Values
AccessDictionaryBase<TKeyBase, TValueBase>.Add(TKeyBase, TValueBase)
AccessDictionaryBase<TKeyBase, TValueBase>.AddNew()
AccessDictionaryBase<TKeyBase, TValueBase>.ContainsKey(TKeyBase)
AccessDictionaryBase<TKeyBase, TValueBase>.GetKey(Int32)
AccessDictionaryBase<TKeyBase, TValueBase>.GetValue(Int32)
AccessDictionaryBase<TKeyBase, TValueBase>.GetPair(Int32)
AccessDictionaryBase<TKeyBase, TValueBase>.SetKey(Int32, TKeyBase)
AccessDictionaryBase<TKeyBase, TValueBase>.SetValue(Int32, TValueBase)
AccessDictionaryBase<TKeyBase, TValueBase>.RemoveAt(Int32)
AccessDictionaryBase<TKeyBase, TValueBase>.RemoveAt(Index)
AccessDictionaryBase<TKeyBase, TValueBase>.Clear()
AccessDictionaryBase<TKeyBase, TValueBase>.GetSinglePairForKey(TKeyBase)
AccessDictionaryBase<TKeyBase, TValueBase>.TryGetSinglePairForKey(TKeyBase, AccessPairBase<TKeyBase, TValueBase>)
AccessDictionaryBase<TKeyBase, TValueBase>.Item[TKeyBase]
AccessDictionaryBase<TKeyBase, TValueBase>.TryGetValue(TKeyBase, TValueBase)
AccessDictionaryBase<TKeyBase, TValueBase>.TryGetValue(TKeyBase)
AccessDictionaryBase<TKeyBase, TValueBase>.GetEnumerator()
AccessDictionaryBase<TKeyBase, TValueBase>.IEnumerable.GetEnumerator()
AccessDictionaryBase<TKeyBase, TValueBase>.ToString()
AccessDictionaryBase<TKeyBase, TValueBase>.TryAdd(TKeyBase, TValueBase)
Namespace: AssetRipper.Assets.Generics
Assembly: AssetRipper.Assets.dll
Syntax
public sealed class AccessDictionary<TKey, TValue, TKeyBase, TValueBase> : AccessDictionaryBase<TKeyBase, TValueBase> where TKey : TKeyBase, new()
    where TValue : TValueBase, new()
Type Parameters
Name Description
TKey

The key type of the reference dictionary

TValue

The value type of the reference dictionary

TKeyBase

The exposed key type, such as an interface

TValueBase

The exposed value type, such as an interface

Constructors

| Improve this Doc View Source

AccessDictionary(AssetDictionary<TKey, TValue>)

Declaration
public AccessDictionary(AssetDictionary<TKey, TValue> referenceDictionary)
Parameters
Type Name Description
AssetDictionary<TKey, TValue> referenceDictionary

Properties

| Improve this Doc View Source

Capacity

The capacity of the dictionary

Declaration
public override int Capacity { get; set; }
Property Value
Type Description
System.Int32
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.Capacity
| Improve this Doc View Source

Count

The number of pairs in the dictionary

Declaration
public override int Count { get; }
Property Value
Type Description
System.Int32
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.Count

Methods

| Improve this Doc View Source

Add(TKeyBase, TValueBase)

Add a pair to the dictionary

Declaration
public override void Add(TKeyBase key, TValueBase value)
Parameters
Type Name Description
TKeyBase key
TValueBase value
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.Add(TKeyBase, TValueBase)
Remarks

This method is not necessarily type safe. It could throw exceptions if used improperly.

| Improve this Doc View Source

AddNew()

Add a new pair to the dictionary

Declaration
public override AccessPair<TKey, TValue, TKeyBase, TValueBase> AddNew()
Returns
Type Description
AccessPair<TKey, TValue, TKeyBase, TValueBase>
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.AddNew()
| Improve this Doc View Source

Clear()

Declaration
public override void Clear()
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.Clear()
| Improve this Doc View Source

GetEnumerator()

Declaration
public override IEnumerator<AccessPair<TKey, TValue, TKeyBase, TValueBase>> GetEnumerator()
Returns
Type Description
IEnumerator<AccessPair<TKey, TValue, TKeyBase, TValueBase>>
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.GetEnumerator()
| Improve this Doc View Source

GetKey(Int32)

Get a key in the dictionary

Declaration
public override TKeyBase GetKey(int index)
Parameters
Type Name Description
System.Int32 index

The index to access

Returns
Type Description
TKeyBase

The key at the specified index

Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.GetKey(System.Int32)
| Improve this Doc View Source

GetPair(Int32)

Declaration
public override AccessPair<TKey, TValue, TKeyBase, TValueBase> GetPair(int index)
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
AccessPair<TKey, TValue, TKeyBase, TValueBase>
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.GetPair(System.Int32)
| Improve this Doc View Source

GetValue(Int32)

Get a value in the dictionary

Declaration
public override TValueBase GetValue(int index)
Parameters
Type Name Description
System.Int32 index

The index to access

Returns
Type Description
TValueBase

The value at the specified index

Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.GetValue(System.Int32)
| Improve this Doc View Source

RemoveAt(Int32)

Declaration
public override void RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.RemoveAt(System.Int32)
| Improve this Doc View Source

SetKey(Int32, TKeyBase)

Set a key in the dictionary

Declaration
public override void SetKey(int index, TKeyBase newKey)
Parameters
Type Name Description
System.Int32 index

The index to access

TKeyBase newKey
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.SetKey(System.Int32, TKeyBase)
Remarks

This method is not necessarily type safe. It could throw exceptions if used improperly.

| Improve this Doc View Source

SetValue(Int32, TValueBase)

Set a value in the dictionary

Declaration
public override void SetValue(int index, TValueBase newValue)
Parameters
Type Name Description
System.Int32 index

The index to access

TValueBase newValue
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.SetValue(System.Int32, TValueBase)
Remarks

This method is not necessarily type safe. It could throw exceptions if used improperly.

| Improve this Doc View Source

TryGetSinglePairForKey(TKeyBase, out AccessPairBase<TKeyBase, TValueBase>)

Declaration
public override bool TryGetSinglePairForKey(TKeyBase key, out AccessPairBase<TKeyBase, TValueBase> pair)
Parameters
Type Name Description
TKeyBase key
AccessPairBase<TKeyBase, TValueBase> pair
Returns
Type Description
System.Boolean
Overrides
AssetRipper.Assets.Generics.AccessDictionaryBase<TKeyBase, TValueBase>.TryGetSinglePairForKey(TKeyBase, AssetRipper.Assets.Generics.AccessPairBase<TKeyBase, TValueBase>)

Implements

IReadOnlyCollection<>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾