16 references to Contains
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionService.cs (2)
327if (_designerActionLists.TryGetValue(comp, out DesignerActionListCollection? dacl) && dacl.Contains(actionList)) 344if (!_designerActionLists.TryGetValue(comp, out DesignerActionListCollection? actionLists) || !actionLists.Contains(actionList))
System.Windows.Forms.Design.Tests (14)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (14)
44Assert.True(collection.Contains(value1)); 50Assert.True(collection.Contains(value2)); 55Assert.True(collection.Contains(null)); 102Assert.True(collection.Contains(value1)); 108Assert.True(collection.Contains(value2)); 113Assert.True(collection.Contains(null)); 127Assert.False(collection.Contains(value)); 133Assert.False(collection.Contains(null)); 149Assert.False(collection.Contains(value1)); 151Assert.True(collection.Contains(value2)); 157Assert.False(collection.Contains(value2)); 159Assert.True(collection.Contains(null)); 182Assert.False(collection.Contains(new DesignerActionList(null))); 183Assert.False(collection.Contains(null));