public static void RegisterDictionaryWantsCrossRef <K, V>(Dictionary <K, V> wanterDict, XmlNode entryNode, object debugWanterInfo = null) where K : new() where V : new() { DirectXmlCrossRefLoader.WantedRefForDictionary <K, V> wantedRefForDictionary = null; foreach (DirectXmlCrossRefLoader.WantedRef wantedRef in DirectXmlCrossRefLoader.wantedRefs) { if (wantedRef.wanter == wanterDict) { wantedRefForDictionary = (DirectXmlCrossRefLoader.WantedRefForDictionary <K, V>)wantedRef; break; } } if (wantedRefForDictionary == null) { wantedRefForDictionary = new DirectXmlCrossRefLoader.WantedRefForDictionary <K, V>(wanterDict, debugWanterInfo); DirectXmlCrossRefLoader.wantedRefs.Add(wantedRefForDictionary); } wantedRefForDictionary.AddWantedDictEntry(entryNode); }
public static void RegisterDictionaryWantsCrossRef <K, V>(Dictionary <K, V> wanterDict, XmlNode entryNode) where K : new() where V : new() { DirectXmlCrossRefLoader.WantedRefForDictionary <K, V> wantedRefForDictionary = null; foreach (DirectXmlCrossRefLoader.WantedRef current in DirectXmlCrossRefLoader.wantedRefs) { if (current.wanter == wanterDict) { wantedRefForDictionary = (DirectXmlCrossRefLoader.WantedRefForDictionary <K, V>)current; break; } } if (wantedRefForDictionary == null) { wantedRefForDictionary = new DirectXmlCrossRefLoader.WantedRefForDictionary <K, V>(wanterDict); DirectXmlCrossRefLoader.wantedRefs.Add(wantedRefForDictionary); } wantedRefForDictionary.AddWantedDictEntry(entryNode); }