Initializes a new instance of the Class with
the specified key/value, has its initial valies copied from the
specified
Declaration Syntax
C# |
public InternalDictionary( IDictionary<TKey, TValue> dictionary )
Parameters
- dictionary ( IDictionary < (Of < ( <' TKey , TValue > ) > ) > )
- to copy initial values from
Examples
Copy | |
---|---|
// initialize a new InternalDictionary named testAvName with a UUID as the key and an string as the value. // populates with copied values from example KeyNameCache Dictionary. // create source dictionary Dictionary<UUID, string> KeyNameCache = new Dictionary<UUID, string>(); KeyNameCache.Add( "8300f94a-7970-7810-cf2c-fc9aa6cdda24", "Jack Avatar"); KeyNameCache.Add( "27ba1e40-13f7-0708-3e98-5819d780bd62", "Jill Avatar"); // Initialize new dictionary. public InternalDictionary<UUID, string> testAvName = new InternalDictionary<UUID, string>(KeyNameCache); |
See Also
InternalDictionary
Dictionary
Dictionary
Dictionary
Dictionary
Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)