class NetDictionary<TKey,TValue>

in global :: Sandbox

A networkable dictionary for use with the and . Only changes will be networked instead of sending the whole dictionary every time, so it's more efficient. Example usage: public class MyComponent : Component { [Sync] public NetDictionary<string,bool> MyBoolTable { get; set; } = new(); public void SetBoolState( string key, bool state ) { if ( IsProxy ) return; MyBoolTable[key] = state; } }


public ICollection<TValue> Values { get; }

public ICollection<TKey> Keys { get; }

public int Count { get; }

public NetDictionary<TKey,TValue>( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public IEnumerator<KeyValuePair<TKey,TValue>> GetEnumerator( )

😔 No documentation found.

public TValue Item { get; set; }

😔 No documentation found.

public bool TryGetValue( TKey key, ref TValue value )

😔 No documentation found.

public bool Remove( TKey key )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Remove( KeyValuePair<TKey,TValue> item )

😔 No documentation found.

public void CopyTo( KeyValuePair<TKey,TValue>[] array, int arrayIndex )

😔 No documentation found.

public bool Contains( KeyValuePair<TKey,TValue> item )

😔 No documentation found.

public bool ContainsKey( TKey key )

😔 No documentation found.

public void Clear( )

😔 No documentation found.

public void Add( KeyValuePair<TKey,TValue> item )

😔 No documentation found.

public void Dispose( )

😔 No documentation found.

public void Add( TKey key, TValue value )

😔 No documentation found.