Почему Foreach именно в таком порядке выводит объект?
- A
- B
- Q
using System.Collections; using System.Collections.Generic; using UnityEngine; public class learningScript : MonoBehavior { public Hashtable inventory = new Hashtable(); void Start() { inventory.Add("age", "Q"); inventory.Add("gender", "A"); inventory.Add("name", "B"); foreach (string invert in inventory.Keys) { Debug.Log(inventory[invert]); } } void Update() { } }