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