138 references to Name
PresentationFramework (39)
System\Windows\Condition.cs (3)
265
if (condition != null && eventArgs.Member.
Name
== "Binding" && eventArgs.MarkupExtension is BindingBase)
282
if (eventArgs.Member.
Name
== "Property")
290
else if (eventArgs.Member.
Name
== "Value")
System\Windows\DataTrigger.cs (1)
204
if (trigger != null && eventArgs.Member.
Name
== "Binding" && eventArgs.MarkupExtension is BindingBase)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1386
RoutedEvent routedEvent = EventManager.GetRoutedEventFromName(eventProperty.
Name
,
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
50
property.
Name
.Equals("Source"))
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
246
xamlMember = declaringType.GetAttachableMember(xamlMember.
Name
);
250
xamlMember = declaringType.GetMember(xamlMember.
Name
);
302
return xamlMember.
Name
;
System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (1)
51
string methodName = $"ShouldSerialize{_member.
Name
}";
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
71
string methodName = $"ShouldSerialize{_member.
Name
}";
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
312
_baseUnderlyingMember = wpfXType.FindBaseXamlMember(
Name
, IsAttachable);
317
_baseUnderlyingMember = wpfXType.FindBaseXamlMember(
Name
, !IsAttachable);
System\Windows\Markup\Baml2006\WpfXamlType.cs (5)
187
member = GetMember(member.
Name
);
360
if (Members.TryAdd(xamlMember.
Name
, xamlMember))
366
return Members[xamlMember.
Name
];
371
if (AttachableMembers.TryAdd(xamlMember.
Name
, xamlMember))
377
return AttachableMembers[xamlMember.
Name
];
System\Windows\Markup\RestrictiveXamlXmlReader.cs (6)
167
if (directive.
Name
== XamlLanguage.Items.
Name
||
168
directive.
Name
== XamlLanguage.Key.
Name
||
169
directive.
Name
== XamlLanguage.Name.
Name
||
System\Windows\Setter.cs (3)
225
if (setter == null || eventArgs.Member.
Name
!= "Value")
254
if (eventArgs.Member.
Name
== "Property")
262
else if (eventArgs.Member.
Name
== "Value")
System\Windows\TemplateContent.cs (10)
102
string prop = (this.Property == null) ? "-" : this.Property.
Name
;
557
if (xamlReader.Member.
Name
== "Content")
559
else if (xamlReader.Member.
Name
== "Columns")
564
if (xamlReader.Member.
Name
== "Content")
566
else if (xamlReader.Member.
Name
== "ContentTemplate")
568
else if (xamlReader.Member.
Name
== "ContentTemplateSelector")
570
else if (xamlReader.Member.
Name
== "ContentStringFormat")
572
else if (xamlReader.Member.
Name
== "ContentSource")
678
&& stack.CurrentFrame.Property.
Name
== "ContentSource")
1052
return (member.IsUnknown && member.IsDirective && member.
Name
== "Freeze");
System\Windows\Trigger.cs (2)
290
if (eventArgs.Member.
Name
== "Property")
298
else if (eventArgs.Member.
Name
== "Value")
System.Xaml (57)
System\Xaml\Context\ObjectWriterContext.cs (2)
319
throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.
Name
), nameof(properties));
390
if (inst is not XAML3.IQueryAmbient ambientCtrl || ambientCtrl.IsAmbientPropertyAvailable(prop.
Name
))
System\Xaml\Context\ObjectWriterFrame.cs (1)
73
string prop = (Member is null) ? "-" : Member.
Name
;
System\Xaml\InfosetObjects\XamlNodes.cs (1)
124
str += Member.
Name
;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (6)
305
_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.
Name
)));
646
throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.
Name
)));
655
throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.
Name
)));
1402
inst = Logic_CreateFromValue(ctx, converter, value, property, property.
Name
);
1631
object convertedValue = Logic_CreateFromValue(ctx, propertyForDirective.TypeConverter, value, propertyForDirective, propertyForDirective.
Name
);
2551
owc.ParentProperty, owc.ParentProperty.
Name
, token);
System\Xaml\Parser\MePullParser.cs (1)
436
error = SR.Format(SR.MissingComma2, _context.CurrentMember.
Name
, _tokenizer.TokenText);
System\Xaml\Parser\XamlPullParser.cs (1)
559
contentProperty = new XamlMember(contentProperty.
Name
, currentType, false);
System\Xaml\Parser\XamlScanner.cs (3)
608
if (KS.Eq(attr.Name.Name, XamlLanguage.TypeArguments.
Name
))
736
if (KS.Eq(_attributes[i].Name.ScopedName, XamlLanguage.Uid.
Name
))
812
attrProperty.
Name
== "UnicodeString" &&
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
553
throw CreateException((SR.Format(SR.XmlDataNull, property.
Name
)));
558
throw new XamlInternalException(SR.Format(SR.XmlValueNotReader, property.
Name
));
System\Xaml\Schema\XamlDirective.cs (4)
66
int result = (
Name
is null) ? 0 :
Name
.GetHashCode();
81
return $"{{{_xamlNamespaces[0]}}}{
Name
}";
85
return
Name
;
System\Xaml\Schema\XamlMemberInvoker.cs (1)
116
string methodName = KnownStrings.ShouldSerialize + _member.
Name
;
System\Xaml\XamlException.cs (1)
147
: base(SR.Format(SR.DuplicateMemberSet, (member is not null) ? member.
Name
: null, (type is not null) ? type.Name : null))
System\Xaml\XamlMarkupExtensionWriter.cs (4)
137
throw new InvalidOperationException(SR.Format(SR.XamlMarkupExtensionWriterDuplicateMember, property.
Name
));
413
writer.sb.Append(property.
Name
);
419
string local = $"{property.DeclaringType.Name}.{property.
Name
}";
425
writer.sb.Append(property.
Name
);
System\Xaml\XamlMember.cs (5)
351
return $"{_declaringType}.{
Name
}";
1046
return (
Name
is null ? 0 :
Name
.GetHashCode()) ^ (int)_memberType ^ DeclaringType.GetHashCode();
1066
if (xamlMember1._memberType != xamlMember2._memberType || xamlMember1.
Name
!= xamlMember2.
Name
)
System\Xaml\XamlObjectReader.cs (14)
909
throw new InvalidOperationException(SR.Format(SR.AttachedPropertyOnTypeConvertedOrStringProperty, property.
Name
, value.ToString(), props[0].Key.ToString()));
1046
namesOfAttributableProperties.Add(memberInfo.XamlNode.Member.
Name
);
1060
if (!namesOfAttributableProperties.Contains(dependingProperty.
Name
))
1081
namesOfAttributableProperties.Add(memberInfo.XamlNode.Member.
Name
);
1103
string dependentPropertyName = property.XamlNode.Member.
Name
;
1108
propertiesWithDO.SetOrder(dependingProperty.
Name
, dependentPropertyName);
2144
throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.
Name
, property.DeclaringType));
2258
return string.CompareOrdinal(xProperty.
Name
, yProperty.
Name
);
2318
return string.CompareOrdinal(xProperty.
Name
, yProperty.
Name
);
3258
XamlMember baseMember = baseType.GetMember(member.
Name
);
3261
baseMember = GetExcludedReadOnlyMember(baseType, member.
Name
);
3288
if (member.
Name
== name)
System\Xaml\XamlSchemaContext.cs (1)
593
string propertyName = member.
Name
;
System\Xaml\XamlType.cs (2)
373
_reflector.Members.TryAdd(member.
Name
, member);
422
_reflector.AttachableMembers.TryAdd(member.
Name
, member);
System\Xaml\XamlXmlWriter.cs (8)
193
throw new ArgumentException(SR.Format(SR.MemberHasInvalidXamlName, property.
Name
), nameof(property));
517
throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterDuplicateMember, property.
Name
));
828
string local = (property.IsDirective) ? property.
Name
: $"{GetTypeName(xamlType)}.{property.
Name
}";
842
string local = property.
Name
;
858
local = property.
Name
;
862
local = $"{GetTypeName(property.DeclaringType)}.{property.
Name
}";
1965
XamlMember member = objectXamlType.GetMember(matchingProperty.
Name
);
System.Xaml.Tests (42)
System\Xaml\XamlDirectiveTests.cs (2)
32
Assert.Equal(name, directive.
Name
);
67
Assert.Equal(name, directive.
Name
);
System\Xaml\XamlLanguageTests.cs (24)
272
Assert.Equal("Arguments", directive.
Name
);
285
Assert.Equal("AsyncRecords", directive.
Name
);
298
Assert.Equal("Class", directive.
Name
);
311
Assert.Equal("ClassModifier", directive.
Name
);
324
Assert.Equal("Code", directive.
Name
);
337
Assert.Equal("ConnectionId", directive.
Name
);
350
Assert.Equal("FactoryMethod", directive.
Name
);
363
Assert.Equal("FieldModifier", directive.
Name
);
376
Assert.Equal("_Items", directive.
Name
);
389
Assert.Equal("_Initialization", directive.
Name
);
402
Assert.Equal("Key", directive.
Name
);
415
Assert.Equal("Members", directive.
Name
);
428
Assert.Equal("ClassAttributes", directive.
Name
);
441
Assert.Equal("Name", directive.
Name
);
454
Assert.Equal("_PositionalParameters", directive.
Name
);
467
Assert.Equal("Shared", directive.
Name
);
480
Assert.Equal("Subclass", directive.
Name
);
493
Assert.Equal("SynchronousMode", directive.
Name
);
506
Assert.Equal("TypeArguments", directive.
Name
);
519
Assert.Equal("Uid", directive.
Name
);
532
Assert.Equal("_UnknownContent", directive.
Name
);
545
Assert.Equal("base", directive.
Name
);
558
Assert.Equal("lang", directive.
Name
);
571
Assert.Equal("space", directive.
Name
);
System\Xaml\XamlMemberTests.cs (9)
25
Assert.Equal(name, member.
Name
);
56
Assert.Equal(propertyInfo.Name, member.
Name
);
78
Assert.Equal(propertyInfo.Name, member.
Name
);
112
Assert.Equal(eventInfo.Name, member.
Name
);
134
Assert.Equal(eventInfo.Name, member.
Name
);
171
Assert.Equal(attachablePropertyName, member.
Name
);
194
Assert.Equal(attachablePropertyName, member.
Name
);
258
Assert.Equal(attachablePropertyName, member.
Name
);
279
Assert.Equal(attachablePropertyName, member.
Name
);
System\Xaml\XamlTypeTests.cs (7)
1241
Assert.Equal(expectedGetAllMembers.OrderBy(m => m.
Name
), type.GetAllMembers().OrderBy(m => m.
Name
));
1242
Assert.Equal(expectedLookup?.OrderBy(m => m.
Name
), type.LookupAllMembersEntry()?.OrderBy(m => m.
Name
));
5151
XamlMember[] sortedActual = actual.OrderBy(m => m.
Name
).ToArray();
5168
Assert.Equal(expected.
Name
, actual.
Name
);