24 references to Current
System.Windows.Forms.Design (23)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
217Debug.Assert(manager.Context.Current == abs, "Serializer added a context it didn't remove."); 279Debug.Assert(manager.Context.Current == abs, "Serializer added a context it didn't remove.");
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (9)
465Debug.Assert(manager.Context.Current == statement, "Someone corrupted the context stack"); 1976Debug.Assert(manager.Context.Current == newCtx, "Context stack corrupted."); 2121Debug.Assert(manager.Context.Current == descriptor, "Context stack corrupted."); 2162Debug.Assert(manager.Context.Current == inheritance, "Somebody messed up our context stack."); 2230Debug.Assert(manager.Context.Current == tree, "Context stack corrupted."); 2238Debug.Assert(manager.Context.Current == statements, "Context stack corrupted."); 2266Debug.Assert(manager.Context.Current == propertyToSerialize, "Context stack corrupted."); 2373Debug.Assert(manager.Context.Current == saveStatements, "Context stack corrupted."); 2566Debug.Assert(manager.Context.Current == saveStatements, "Context stack corrupted.");
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (3)
435Debug.Assert(manager.Context.Current == newContext, "Context stack corrupted."); 529Debug.Assert(manager.Context.Current == newCtx, "Context stack corrupted."); 605Debug.Assert(manager.Context.Current == newContext, "Context stack corrupted.");
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
454Debug.Assert(manager.Context.Current == entry, "Context stack corrupted"); 496Debug.Assert(manager.Context.Current == statements, "Context stack corrupted");
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (3)
200Debug.Assert(manager.Context.Current == tree, "Serializer added a context it didn't remove."); 260Debug.Assert(manager.Context.Current == tree, "Context stack corrupted."); 341Debug.Assert(manager.Context.Current == tree, "Context stack corrupted.");
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (2)
428Debug.Assert(manager.Context.Current == re.ExpressionContext, "Someone corrupted the context stack"); 430Debug.Assert(manager.Context.Current == re.PropertyDescriptor, "Someone corrupted the context stack");
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
202Debug.Assert(manager.Context.Current == rootCtx, "Context stack corrupted"); 465Debug.Assert(manager.Context.Current == statementCtx, "Somebody messed up our context stack");
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
114Assert.Null(context.Current);