Vector3I vec = new Vector3I(1, 2, 3); string vecStr = vec.ToString(); // "Vector3I(1, 2, 3)"
var vecList = new ListIn this example, we create a list of two Vector3I objects and loop through each one to print its string representation to the console. The Vector3I class is part of the Microsoft.Xna.Framework package library, which is used for developing games on the Microsoft Xbox, Windows, and Windows Phone platforms.{ new Vector3I(1, 2, 3), new Vector3I(4, 5, 6) }; foreach (var vec in vecList) { Console.WriteLine(vec.ToString()); }