9 references to TryGetValue
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.cs (1)
154if (property is not null && property.TryGetValue(value, out text))
System\ComponentModel\Design\ComponentDesigner.cs (1)
46if (defaultProperty.TryGetValue(_component, out string? currentValue) && string.IsNullOrEmpty(currentValue))
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
659if (clearProperty is not null && clearProperty.TryGetValue(manager, out bool b) && b)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
181if (generateProp is not null && generateProp.TryGetValue(value, out bool b) && !b) 224if (modifiersProp is null || !modifiersProp.TryGetValue(value, out MemberAttributes fieldAttrs))
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
144if (supportGenerate is not null && supportGenerate.TryGetValue(manager, out bool supportGenerateValue) && supportGenerateValue)
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
83if (p is not null && p.TryGetValue(component: null, out bool b) && b)
System\Windows\Forms\Design\CommandSet.cs (1)
2089if (nameProp is not null && nameProp.TryGetValue(curComp, out string? newName))
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeDescriptorHelper.cs (1)
43if (property is not null && property.TryGetValue(component, out value))