public Dictionary <string, bool> GetAssociatedResources() { Dictionary <string, bool> dictionary = new Dictionary <string, bool>(); int count = this.tracks.get_Count(); for (int i = 0; i < count; i++) { Track track = this.tracks.get_Item(i); Dictionary <string, bool> associatedResources = track.GetAssociatedResources(); if (associatedResources != null) { using (Dictionary <string, bool> .KeyCollection.Enumerator enumerator = associatedResources.get_Keys().GetEnumerator()) { while (enumerator.MoveNext()) { string current = enumerator.get_Current(); if (dictionary.ContainsKey(current)) { Dictionary <string, bool> dictionary2; Dictionary <string, bool> expr_5F = dictionary2 = dictionary; string text; string expr_64 = text = current; bool flag = dictionary2.get_Item(text); expr_5F.set_Item(expr_64, flag | associatedResources.get_Item(current)); } else { dictionary.Add(current, associatedResources.get_Item(current)); } } } } } return(dictionary); }
public void GetAssociatedResources(Dictionary <object, AssetRefType> results, int markID = 0) { if (results == null) { results = new Dictionary <object, AssetRefType>(); } for (int i = 0; i < this.tracks.Count; i++) { Track track = this.tracks[i]; if (track != null && track.enabled) { track.GetAssociatedResources(results, markID); } } }