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