AssetBundleGraph.SerializableVector2Dictionary.Remove C# (CSharp) Méthode

Remove() public méthode

public Remove ( string key ) : void
key string
Résultat void
        public void Remove(string key)
        {
            var dict = new Dictionary<string, Vector2>();

            for (var i = 0; i < keys.Count; i++) {
                var currentKey = keys[i];
                var currentVal = values[i];
                dict[currentKey] = currentVal;
            }

            dict.Remove(key);
            keys = new List<string>(dict.Keys);
            values = new List<Vector2>(dict.Values);
        }