270 references to Name
PresentationFramework (24)
MS\Internal\Data\ClrBindingWorker.cs (1)
816return pd.Name;
MS\Internal\Data\PropertyPathWorker.cs (5)
130(pd != null) ? pd.Name : 1506name = properties[index].Name; 1631throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pd.Name)); 1722string columnName = (pd != null) ? pd.Name : 1765_host.OnSourcePropertyChanged(sender, e.PropertyDescriptor.Name);
MS\Internal\Data\ValueTable.cs (1)
173PropertyChangedEventManager.AddHandler(inpc, OnPropertyChanged, pd.Name);
MS\Internal\TraceData.cs (1)
288PropertyDescriptor pd => $"{pd.GetType().Name}({pd.Name})",
System\Windows\Data\CollectionView.cs (1)
1501list.Add(new ItemPropertyInfo(pd.Name, pd.PropertyType, pd));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
246if (!TryGetShouldSerializeMethod(new ShouldSerializeKey(instance.GetType(), pd.Name), out shouldSerializeMethod)) 249string methodName = $"ShouldSerialize{pd.Name}"; 263CacheShouldSerializeMethod(new ShouldSerializeKey(instanceType, pd.Name), shouldSerializeMethod); 758get { return _descriptor.Name; }
System\Windows\Markup\Primitives\MarkupWriter.cs (8)
582if (xlpa != null && xlpa.Name == property.PropertyDescriptor.Name) 587else if (upa != null && upa.Name == property.PropertyDescriptor.Name) 590_writer.WriteAttributeString(scope.GetPrefixOf(xamlUri), property.PropertyDescriptor.Name, xamlUri, property.StringValue); 594_writer.WriteAttributeString(property.PropertyDescriptor.Name, property.StringValue); 709WritePropertyStart(prefix, $"{item.ObjectType.Name}.{property.PropertyDescriptor.Name}", uri); 835_writer.WriteStartElement(prefix, $"{item.ObjectType.Name}.{property.PropertyDescriptor.Name}", uri); 887descriptor.Name == cpa.Name) 1112if (property.IsContent || (cpa != null && property.PropertyDescriptor != null && property.PropertyDescriptor.Name == cpa.Name))
System\Windows\Media\Animation\Storyboard.cs (1)
782return ((PropertyDescriptor)propertyAccessor).Name;
System\Windows\PropertyPath.cs (1)
960return pd.Name;
System\Windows\PropertyPathConverter.cs (1)
225name = pd.Name;
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
164return dataRowView.CreateChildView(pd.Name, followParent:true);
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
56Attribute[] newMetadata = TypeDescriptorCache.GetAssociatedMetadata(AssociatedMetadataType, propDescriptor.Name);
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
219propertyStoreItems[property.Name] = item;
System\ComponentModel\DataAnnotations\Validator.cs (1)
524context.MemberName = property.Name;
System.ComponentModel.TypeConverter (50)
System\ComponentModel\Design\DesignerOptionService.cs (1)
406internal WrappedPropertyDescriptor(PropertyDescriptor property, object target) : base(property.Name, null)
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (2)
125throw new ArgumentException(SR.Format(SR.MemberRelationshipService_RelationshipNotSupported, sourceName, source.Member.Name, relName, relationship.Member.Name));
System\ComponentModel\EventDescriptorCollection.cs (3)
177if (string.Equals(_events[i]!.Name, name, StringComparison.OrdinalIgnoreCase)) 188if (string.Equals(_events[i]!.Name, name, StringComparison.Ordinal)) 327if (currentEvent != null && currentEvent.Name.Equals(names[i]))
System\ComponentModel\MemberDescriptor.cs (2)
70_name = descr.Name; 91_name = oldMemberDescriptor.Name;
System\ComponentModel\PropertyDescriptor.cs (2)
212&& pd.Name.Equals(Name))
System\ComponentModel\PropertyDescriptorCollection.cs (8)
210if (string.Equals(_properties[i].Name, name, StringComparison.OrdinalIgnoreCase)) 219if (_properties[i].Name.Equals(name)) 345if (currentProp != null && currentProp.Name.Equals(names[i])) 478if (_properties[i]!.Name.Equals((string)key)) 513keys[i] = _properties[i]!.Name; 606return new DictionaryEntry(curProp.Name, curProp); 610public object Key => _owner[_index].Name; 612public object Value => _owner[_index].Name;
System\ComponentModel\ReflectEventDescriptor.cs (8)
195throw new ArgumentException(SR.Format(SR.ErrorInvalidEventHandler, Name)); 243Debug.Assert(_removeMethod != null, $"Null remove method for {Name}"); 246Debug.Assert(_addMethod != null, $"Null remove method for {Name}"); 355_realEvent = _componentClass.GetEvent(Name); 364_addMethod = FindMethod(_componentClass, "AddOn" + Name, argsType, typeof(void)); 365_removeMethod = FindMethod(_componentClass, "RemoveOn" + Name, argsType, typeof(void)); 368Debug.Fail($"Missing event accessors for {_componentClass.FullName}. {Name}"); 369throw new ArgumentException(SR.Format(SR.ErrorMissingEventAccessors, Name));
System\ComponentModel\ReflectPropertyDescriptor.cs (17)
254_realChangedEvent = TypeDescriptor.GetEvents(_componentClass)[Name + "Changed"]; 335_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 343throw new InvalidOperationException(SR.Format(SR.ErrorMissingPropertyAccessors, _componentClass.FullName + "." + Name)); 348_getMethod = FindMethod(_componentClass, "Get" + Name, new Type[] { _receiverType }, _type); 351throw new ArgumentException(SR.Format(SR.ErrorMissingPropertyAccessors, Name)); 397_resetMethod = FindMethod(_componentClass, "Reset" + Name, args, typeof(void), /* publicOnly= */ false); 448_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 457_setMethod = FindMethod(_componentClass, "Set" + Name, 489_shouldSerializeMethod = FindMethod(_componentClass, "ShouldSerialize" + Name, args, typeof(bool), publicOnly: false); 814memberInfo = currentReflectType.GetMethod("Get" + Name, bindingFlags, binder: null, new Type[] { _receiverType! }, modifiers: null); 818memberInfo = currentReflectType.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 903Debug.WriteLine($"[{Name}]: GetValue({component?.GetType().Name ?? "(null)"})"); 907Debug.WriteLine($"[{Name}]: ---> returning: null"); 940throw new TargetInvocationException(SR.Format(SR.ErrorPropertyAccessorException, Name, name, message), t); 943Debug.WriteLine("[" + Name + "]: ---> returning: null"); 954string.Compare(e.PropertyName, Name, true, CultureInfo.InvariantCulture) == 0) 1080Debug.WriteLine($"[{Name}]: SetValue({component?.GetType().Name ?? "(null)"}, {value?.GetType().Name ?? "(null)"})");
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
612Debug.Assert(eppa != null, $"Extender property {prop.Name} has no provider attribute. We will skip it.");
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
453eventList.TryAdd(ed.Name, ed); 488propertyList.TryAdd(p.Name, p);
System\ComponentModel\TypeDescriptor.cs (4)
2004string descName = desc.Name; 2037filterTable[origDesc.Name + suffix] = origDesc; 3033return CultureInfo.InvariantCulture.CompareInfo.Compare(leftMember?.Name, rightMember?.Name);
System.Data.Common (25)
System\Data\Common\DbConnectionStringBuilder.cs (2)
445if (ADP.ConnectionString != reflected.Name) 451PropertyDescriptor descriptor = new DbConnectionStringBuilderDescriptor(reflected.Name,
System\Data\DataView.cs (8)
992void IBindingList.AddIndex(PropertyDescriptor property) => GetFindIndex(property.Name, keepIndex: true); 1008if ((null == _findIndexes) || !_findIndexes.TryGetValue(property.Name, out findIndex)) 1011findIndex = _table!.GetIndex(property.Name, _recordStates, GetFilter()); 1041GetFindIndex(property.Name, /*keepIndex:*/false); 1076if (!_table!.Columns.Contains(property.Name)) 1079throw ExceptionBuilder.ColumnToSortIsOutOfRange(property.Name); 1102$"[{property.Name}] DESC" : 1103$"[{property.Name}]";
System\Data\xmlsaver.cs (15)
177string.Equals(pd.Name, "Namespace", StringComparison.Ordinal) || 178string.Equals(pd.Name, "PrimaryKey", StringComparison.Ordinal) || 179string.Equals(pd.Name, "ColumnName", StringComparison.Ordinal) || 180string.Equals(pd.Name, "DefaultValue", StringComparison.Ordinal) || 181string.Equals(pd.Name, "TableName", StringComparison.Ordinal) || 182string.Equals(pd.Name, "DataSetName", StringComparison.Ordinal) || 183string.Equals(pd.Name, "AllowDBNull", StringComparison.Ordinal) || 184string.Equals(pd.Name, "Unique", StringComparison.Ordinal) || 185string.Equals(pd.Name, "NestedInDataSet", StringComparison.Ordinal) || 186string.Equals(pd.Name, "Locale", StringComparison.Ordinal) || 187string.Equals(pd.Name, "CaseSensitive", StringComparison.Ordinal) || 188string.Equals(pd.Name, "RemotingFormat", StringComparison.Ordinal) 196if (string.Equals(pd.Name, "DataType", StringComparison.Ordinal)) 214if (string.Equals(pd.Name, "Attribute", StringComparison.Ordinal)) 221root.SetAttribute(pd.Name, Keywords.MSDNS, textValue);
System.Windows.Forms (45)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2599string propName = baseProps[i].Name;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (7)
1065fixed (char* n = currentProperty.Name) 1108errorLog->AddError(currentProperty.Name, in err); 1128Debug.Fail($"Couldn't convert {currentProperty.Name} to string."); 1176$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1552propertyBag->Write(currentProperty.Name, data); 1560$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1580fixed (char* pszPropName = currentProperty.Name)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
24if (property.DISPID == PInvokeCore.DISPID_MOUSEICON || property.Name.Contains("Icon"))
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
469Name, 821throw new NotSupportedException(string.Format(SR.COM2ReadonlyProperty, Name));
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
49propertyPageService.ShowPropertyPage(_propertyDescriptor.Name, instance, _propertyDescriptor.DISPID, _guid, parentHandle);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (9)
250if (string.Equals(column.DataPropertyName, sortField.Name, StringComparison.OrdinalIgnoreCase)) 290if (string.Compare(_props[i].Name, dataPropertyName, ignoreCase: true, CultureInfo.InvariantCulture) == 0) 315if (string.Compare(_props![boundColumnIndex].Name, sortProperty!.Name, ignoreCase: true, CultureInfo.InvariantCulture) == 0) 627dataPropertyName = e.PropertyDescriptor.Name; 956dataGridViewColumn.DataPropertyName = _props[i].Name; 957dataGridViewColumn.Name = _props[i].Name; 959dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(_props[i].DisplayName) ? _props[i].DisplayName : _props[i].Name; 1164return errInfo[_props![boundColumnIndex].Name];
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
271if (props[i].Name.Equals(bindingMemberInfo.BindingField)) 284if (string.Equals(props[i].Name, bindingMemberInfo.BindingField, StringComparison.CurrentCultureIgnoreCase))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1380Debug.Assert(!s_pbrsAssertPropsSwitch.Enabled, $"Bad property '{PropertyLabel}.{property.Name}': {w}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (5)
60if (PropertyDescriptor.Name is not null && PropertyDescriptor.Name.Equals(properties[i].Name)) 62values[properties[i].Name] = value; 66values[properties[i].Name] = properties[i].GetValue(owner);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
23: base(descriptors[0].Name, attrs: null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyDescriptorComparer.cs (2)
32int result = string.Compare(a1.Name, a2.Name, false, CultureInfo.InvariantCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (2)
274string entryName = $"{basePropertyDescriptor.Name} {basePropertyDescriptor.PropertyType.FullName}"; 286string sortString = $"{propertyDescriptor.Name} {propertyDescriptor.PropertyType.FullName}";
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (1)
28if ("Name".Equals(properties[i].Name))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
117_helpKeyword = $"{typeName}.{PropertyDescriptor.Name}"; 182public override string? PropertyName => PropertyDescriptor.Name; 570transaction = host?.CreateTransaction(undoText ?? string.Format(SR.PropertyGridSetValue, PropertyDescriptor.Name)); 642eventDescriptor = TypeDescriptor.GetEvents(eventObj!)[PropertyDescriptor.Name];
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
124return errorInfo[FieldInfo.Name] ?? string.Empty;
System\Windows\Forms\DataBinding\Binding.cs (3)
507if (tempPropInfo is null && string.Equals(propInfos[i].Name, PropertyName, StringComparison.OrdinalIgnoreCase)) 516if (tempPropIsNullInfo is null && string.Equals(propInfos[i].Name, propertyNameIsNull, StringComparison.OrdinalIgnoreCase)) 550if (tempValidateInfo is null && string.Equals(eventInfos[i]!.Name, validateName, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\DataBinding\BindingManagerBase.cs (1)
178if (property.Name.Equals(((PropertyDescriptor)listAccessors[offset]!).Name))
System\Windows\Forms\DataBinding\BindingSource.cs (1)
475sb.Append(listSortDescription.PropertyDescriptor!.Name);
System.Windows.Forms.Design (62)
System\ComponentModel\Design\ComponentDesigner.cs (5)
291t = host.CreateTransaction(string.Format(SR.ComponentDesignerAddEvent, defaultEvent.Name)); 430if (!props.ContainsKey(prop.Name)) 434props.Add(prop.Name, new(prop, Component)); 640events[evt.Name] = TypeDescriptor.CreateEvent(evt.ComponentType, evt, ReadOnlyAttribute.Yes); 668properties[prop.Name] = TypeDescriptor.CreateProperty(prop.ComponentType, prop, ReadOnlyAttribute.Yes);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
414return (propertyDescriptor.ComponentType.GetProperty(propertyDescriptor.Name)!.GetSetMethod() is null);
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
85ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorSettingValue, newValue, PropertyDescriptor.Name, e.Message));
System\ComponentModel\Design\DesignerActionUI.cs (4)
255if (ce.Member.Name.Equals("Dock")) 260if (ce.Member.Name.Equals("Location") || 261ce.Member.Name.Equals("Width") || 262ce.Member.Name.Equals("Height"))
System\ComponentModel\Design\EventBindingService.cs (1)
146EventInfo? evInfo = ed.ComponentType.GetEvent(ed.Name);
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
136throw new InvalidOperationException(string.Format(SR.EventBindingServiceEventReadOnly, Name)) 146throw new ArgumentException(string.Format(SR.EventBindingServiceBadArgType, Name, nameof(String)))
System\ComponentModel\Design\ReferenceService.cs (1)
51CreateReferences($"{trailingName}.{property.Name}", property.GetValue(reference), sitedComponent, references);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (5)
549resources[prop.Name] = prop.GetValue(data._value); 589defaultPropList.Add(prop.Name); 608defaultEventList.Add(eventProp.Name); 624defaultEventList.Add(prop.Name); 629defaultPropList.Add(prop.Name);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
2212propertyRef.PropertyName = property.Name; 2224name = $"{name}.{property.Name}";
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
994internal WrappedPropertyDescriptor(PropertyDescriptor property, object target) : base(property.Name, null)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (2)
52CodeEventReferenceExpression eventRef = new(eventTarget, eventToSerialize.Name); 69manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, eventToSerialize.Name, e.Message), manager));
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (8)
57manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, property.Name, e.Message), manager)); 123manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, propertyToSerialize.Name, e.Message), manager)); 141manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNullNestedProperty, name, property.Name), manager)); 164CodeMethodReferenceExpression methodRef = new(extender, $"Get{property.Name}"); 175propertyRef = new CodePropertyReferenceExpression(target, property.Name); 234CodeMethodReferenceExpression methodRef = new(extender, $"Set{property.Name}"); 288CodeExpression propertyRef = new CodePropertyReferenceExpression(target, property.Name); 309serializedPropertyValue = new CodePropertyReferenceExpression(rhsTarget, relationship.Member.Name);
System\ComponentModel\Design\UndoEngine.cs (1)
386name = string.Format(SR.UndoEngineComponentChange2, GetName(e.Component, true), e.Member.Name);
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
232string memberName = e.Member?.Name ?? "(none)";
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
172if (e.Component is not null && e.Component == navigator.CountItem && e.Member is not null && e.Member.Name == "Text")
System\Windows\Forms\Design\BindingSourceDesigner.cs (2)
46e.Member is not null && (e.Member.Name == "DataSource" || e.Member.Name == "DataMember"))
System\Windows\Forms\Design\ComponentTray.cs (1)
2502trans = host.CreateTransaction(string.Format(SR.WindowsFormsAddEvent, defaultEvent.Name));
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
740_dataColumns.Items.Add(new ListBoxItem(propertyDescriptor.PropertyType, propertyDescriptor.Name));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
902if (e.ChangedItem!.PropertyDescriptor!.Name.Equals("HeaderText")) 924else if (e.ChangedItem.PropertyDescriptor.Name.Equals("DataPropertyName")) 938else if (e.ChangedItem.PropertyDescriptor.Name.Equals("Name")) 1284hash.Add(props[i].Name, props[i]);
System\Windows\Forms\Design\DataGridViewDesigner.cs (4)
656string nameFromText = ToolStripDesigner.NameFromText(backEndProps[i].Name, columnType, site); 667dataGridViewColumn.DataPropertyName = backEndProps[i].Name; 668dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(backEndProps[i].DisplayName) ? backEndProps[i].DisplayName : backEndProps[i].Name; 669dataGridViewColumn.Name = backEndProps[i].Name;
System\Windows\Forms\Design\DesignBindingPicker.cs (7)
776string dataField = string.IsNullOrEmpty(dataMember) ? property.Name : dataMember + "." + property.Name; 777AddDataMember(nodes, dataSource, dataField, property.Name, IsListMember(property)); 881DataMemberNode dataMemberNode = new(this, dataSource, dataMember + "." + property.Name, property.Name, isSubList); 1163DataMemberNode projectDataMemberNode = new ProjectDataMemberNode(this, dataSourceDescriptor, propertyDescriptor.Name, propertyDescriptor.Name, isList);
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
40if ((binding.DataSource is IListSource || binding.DataSource is IList || binding.DataSource is Array) && binding.PropertyName.Equals(propDesc.Name))
System\Windows\Forms\Design\ListBoxDesigner.cs (1)
155&& e.Member.Name == nameof(ListBox.Items)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
231if (descriptor.Name.Equals("Name") && descriptor.DesignTimeOnly)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
1423affectsPosition = dsv.Visibility == DesignerSerializationVisibility.Hidden && ExtenderProperties.ContainsKey(member.Name); 1454if (c is not null && c.Parent is not null && c.Parent.Equals(Control) && e.Member is not null && (e.Member.Name == "Row" || e.Member.Name == "Column"))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1013if (parent == ToolStrip && e.Member is not null && e.Member.Name == "Overflow")
System.Windows.Forms.Design.Tests (18)
System\ComponentModel\Design\ComponentDesignerTests.cs (10)
2317Assert.Equal(descriptor.Name, result.Name); 2337Assert.Equal(descriptor.Name, result.Name); 2441Assert.Equal("Event", result.Name); 2747Assert.Equal(descriptor.Name, result.Name); 2768Assert.Equal(descriptor.Name, result.Name); 2881Assert.Equal("Event", result.Name);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (3)
219Assert.Equal("Value", property.Name); 306Assert.Equal(nameof(PropertyProvider.Value), property.Name); 314Assert.Equal(nameof(OtherPropertyProvider.OtherValue), otherProperty.Name);
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (5)
36Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 60Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 77Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 84Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name)); 100Assert.Equal(new string[] { "EnableInSituEditing", "GridSize", "ObjectBoundSmartTagAutoShow", "ShowGrid", "SnapToGrid", "UseOptimizedCodeGeneration", "UseSmartTags", "UseSnapLines" }, childCollection.Properties.Sort().Cast<PropertyDescriptor>().Select(p => p.Name));
System.Windows.Forms.Tests (42)
System\Windows\Forms\AxHostTests.cs (8)
2496Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2501Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2519Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2527Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2540Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name); 2545Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name); 2563Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name); 2571Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name);
System\Windows\Forms\AxSystemMonitorTests.cs (2)
46testingControlProps.Add(prop.Name); 57testingControlEvents.Add(singleEvent.Name);
System\Windows\Forms\AxWebBrowserTests.cs (2)
42.Select(prop => prop.Name) 48.Select(ev => ev.Name)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
157binaryFormattedProperties.Add($"{property.Name}: {propertyType.Name}");
System\Windows\Forms\Design\PropertyTabTests.cs (1)
131Assert.Equal("Value", tab.GetDefaultProperty(new ClassWithDefaultProperty()).Name);
System\Windows\Forms\DockPaddingEdgesConverterTests.cs (5)
17Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.All), properties[0].Name); 18Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Left), properties[1].Name); 19Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Top), properties[2].Name); 20Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Right), properties[3].Name); 21Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Bottom), properties[4].Name);
System\Windows\Forms\LinkAreaConverterTests.cs (2)
205Assert.Equal(nameof(LinkArea.Start), properties[0].Name); 206Assert.Equal(nameof(LinkArea.Length), properties[1].Name);
System\Windows\Forms\ListBindingHelperTests.cs (9)
292Assert.Equal(expected, properties?.Select(p => p.Name)); 296Assert.Equal(expected, properties?.Select(p => p.Name)); 300Assert.Equal(expected, properties?.Select(p => p.Name)); 304Assert.Equal(expected, properties?.Select(p => p.Name)); 308Assert.Equal(expected, properties?.Select(p => p.Name)); 410Assert.Equal(expected, properties?.Select(p => p.Name)); 414Assert.Equal(expected, properties?.Select(p => p.Name)); 418Assert.Equal(expected, properties?.Select(p => p.Name)); 436Assert.Equal(expected, properties?.Select(p => p.Name));
System\Windows\Forms\MonthCalendar.SelectionRangeConverterTests.cs (2)
158props[0].Name.Should().Be("Start"); 159props[1].Name.Should().Be("End");
System\Windows\Forms\PaddingConverterTests.cs (5)
404Assert.Equal(nameof(Padding.All), properties[0].Name); 405Assert.Equal(nameof(Padding.Left), properties[1].Name); 406Assert.Equal(nameof(Padding.Top), properties[2].Name); 407Assert.Equal(nameof(Padding.Right), properties[3].Name); 408Assert.Equal(nameof(Padding.Bottom), properties[4].Name);
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (2)
35Assert.Equal("Name", tab.GetDefaultProperty(new ClassWithNameProperty()).Name); 42Assert.Equal("Value", tab.GetDefaultProperty(new ClassWithDefaultProperty()).Name);
System\Windows\Forms\PropertyGridTests.cs (1)
4299Assert.False(properties.All(p => p.Name != member.Name), "Property not found!");
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (2)
317Assert.Equal(nameof(TableLayoutPanelCellPosition.Column), properties[0].Name); 318Assert.Equal(nameof(TableLayoutPanelCellPosition.Row), properties[1].Name);