static void Main(string[] args)
{
List<string> myList = new List<string>() { "A", "B" };
string myString = "abc";
int myInt = 42;
System.Xml.Linq.XElement root = new System.Xml.Linq.XElement("abc");
Console.WriteLine(myList.First()); //breakpoint on this line
Console.WriteLine(myString);
Console.WriteLine(myInt);
Console.WriteLine(root);
}
当我在旧的开发环境(vs2008、XP、32 位)上运行上述代码时,我看到:
args {string[0]} string[]
+ myList Count = 2 System.Collections.Generic.List<string>
myString "abc" string
myInt 42 int
+ root <abc /> System.Xml.Linq.XElement
当我在新的开发环境(vs2008、Windows7、64 位)上运行它时,我看到:
args {Length=0} array<System::String^> ^
+ myList 0x000000000254bb60 System::Collections::Generic::List<System::String^>^
myString "abc" System::String^
myInt 42 int
+ root 0x000000000254be60 { emptySequence=<undefined value> name=0x000000000254bd88 lastAttr=<undefined value> } System::Xml::Linq::XElement^
+ <>g__initLocal0 0x000000000254bb60 System::Collections::Generic::List<System::String^>^
在我看来,我的新环境的 Locals 窗口正在对我说 C++。
如何更改本地窗口行为?