Collections

0

Witam. Uzywam gotowej klasy gdzie posortowany wynik jest zwracany jako dictionary -> lista -> array. Jak zatem wyswitlic wartosci z dictionary?

 
			{
				if (bencodedString == null) return null;

				List<BElement> rootElements = new List<BElement>();
				while (bencodedString.Length > index)
				{
					rootElements.Add(ReadElement(ref bencodedString, ref index));
				}
			
				return rootElements.ToArray();
				
			}
0

foreach (KeyValuePair<T1, T2> pair in dictionary)
{
Console.WriteLine("{0}, {1}", pair.Key, pair.Value);
}

1 użytkowników online, w tym zalogowanych: 0, gości: 1