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