public void PrintMsg() { os.print("Item count:{0}", Items.Length); for (iterator <int, ItemMsg> it = Items.begin(); it; ++it) { it.value.PrintMsg(); } os.print("-------------------"); os.print("Names count:{0}", Names.Length); for (iterator <int, StringA> itName = Names.begin(); itName; ++itName) { os.print("({0},{1})", itName.key, itName.value); } }
static void Test() { Vector3 v = new Vector3(1, 2, 3); v *= 10; v /= 3; StringA str = "abc"; map <int, StringA> m = new map <int, StringA>(); m[1] = "a"; m[2] = "b"; for (iterator <int, StringA> it = m.begin(); it; ++it) { } }