103 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)
206&& 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)
613Debug.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)
1999string descName = desc.Name; 2032filterTable[origDesc.Name + suffix] = origDesc; 3028return 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);