[TestMethod ()]
Public void turn the Object List test ()
{
ListTest=new List {1, 2, 3, 4, 6};
Var obj=(object) test;
//run the List=null, surveillance, the breakpoint (obj as IEnumerable
Can see from the photos, after the assignment of the List is null.
But the breakpoint monitoring, obj as IEnumerable
This is why ah,,
CodePudding user response:
May be a local variable life cycle