84 references to Name
PresentationFramework (7)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (4)
2049return type.Name; 2053return $"{prefix}:{type.Name}"; 2061throw new InvalidOperationException($"Could not find prefix for type: {type.Name}"); 2383throw new XamlParseException(SR.Format(SR.RecordOutOfOrder, parentType.Name));
System\Windows\Markup\Baml2006\WpfXamlType.cs (2)
464xamlMember = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.CreateKnownMember(wpfXamlType.Name, name); 468xamlMember = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.CreateKnownAttachableMember(wpfXamlType.Name, name);
System\Windows\TemplateContent.cs (1)
101string type = (this.Type == null) ? String.Empty : this.Type.Name;
System.Xaml (27)
System\Xaml\Context\ObjectWriterContext.cs (2)
319throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 434throw new ArgumentException(SR.Format(SR.NotAmbientType, xamlType.Name), nameof(types));
System\Xaml\Context\ObjectWriterFrame.cs (1)
72string type = (XamlType is null) ? string.Empty : XamlType.Name;
System\Xaml\Context\XamlContext.cs (1)
359if (tagNs != propNs && tagType.Name != propTypeName &&
System\Xaml\InfosetObjects\XamlNodes.cs (1)
120str += XamlType.Name;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1076throw lineInfo.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.MissingKey, instanceType.Name))); 1246string msg = string.Format(TypeConverterHelper.InvariantEnglishUS, SR.NoSuchConstructor, rawArgs.Count, meType.Name); 1262Logic_CreateFromValue(ctx, pparamType.TypeConverter, pparam.Value, null, pparamType.Name) : 1287inst = Logic_CreateFromValue(ctx, ts, value, null, xamlType.Name);
System\Xaml\Parser\XamlScanner.cs (2)
813attrProperty.DeclaringType.Name == "Glyphs"); 879KS.Eq(XamlLanguage.XData.Name, name);
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
49throw CreateException(SR.Format(SR.CannotCreateBadType, xamlType.Name));
System\Xaml\Schema\XamlValueConverter.cs (2)
98return $"{ConverterType.Name}({TargetType.Name})"; 104return TargetType.Name;
System\Xaml\XamlException.cs (1)
147: base(SR.Format(SR.DuplicateMemberSet, member?.Name, type?.Name))
System\Xaml\XamlMarkupExtensionWriter.cs (1)
419string local = $"{property.DeclaringType.Name}.{property.Name}";
System\Xaml\XamlObjectReader.cs (2)
1727throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeIsNested, xamlType.Name)); 1731throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeCannotRoundtrip, xamlType.Name));
System\Xaml\XamlType.cs (1)
1469sb.Append(Name);
System\Xaml\XamlTypeName.cs (1)
43Name = xamlType.Name;
System\Xaml\XamlXmlWriter.cs (7)
168throw new ArgumentException(SR.Format(SR.TypeHasInvalidXamlName, type.Name), nameof(type)); 670string typeName = type.Name; 671if (type.IsMarkupExtension && type.Name.EndsWith("Extension", false, TypeConverterHelper.InvariantEnglishUS)) 673typeName = type.Name.Substring(0, type.Name.Length - "Extension".Length); 1297throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, value, containingXamlType.Name)); 1503throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, writer.deferredValue, containingXamlType.Name));
System.Xaml.Tests (50)
System\Xaml\XamlLanguageTests.cs (45)
33Assert.Equal("ArrayExtension", type.Name); 44Assert.Equal("Member", type.Name); 55Assert.Equal("NullExtension", type.Name); 66Assert.Equal("Property", type.Name); 77Assert.Equal("Reference", type.Name); 88Assert.Equal("StaticExtension", type.Name); 99Assert.Equal("TypeExtension", type.Name); 110Assert.Equal("String", type.Name); 121Assert.Equal("Double", type.Name); 132Assert.Equal("Int32", type.Name); 143Assert.Equal("Boolean", type.Name); 154Assert.Equal("XData", type.Name); 165Assert.Equal("Object", type.Name); 176Assert.Equal("Char", type.Name); 187Assert.Equal("Single", type.Name); 198Assert.Equal("Byte", type.Name); 209Assert.Equal("Int16", type.Name); 220Assert.Equal("Int64", type.Name); 231Assert.Equal("Decimal", type.Name); 242Assert.Equal("Uri", type.Name); 253Assert.Equal("TimeSpan", type.Name); 273Assert.Equal("List", directive.Type.Name); 286Assert.Equal("String", directive.Type.Name); 299Assert.Equal("String", directive.Type.Name); 312Assert.Equal("String", directive.Type.Name); 325Assert.Equal("String", directive.Type.Name); 338Assert.Equal("String", directive.Type.Name); 351Assert.Equal("String", directive.Type.Name); 364Assert.Equal("String", directive.Type.Name); 377Assert.Equal("List", directive.Type.Name); 390Assert.Equal("Object", directive.Type.Name); 403Assert.Equal("Object", directive.Type.Name); 416Assert.Equal("List", directive.Type.Name); 429Assert.Equal("List", directive.Type.Name); 442Assert.Equal("String", directive.Type.Name); 455Assert.Equal("List", directive.Type.Name); 468Assert.Equal("String", directive.Type.Name); 481Assert.Equal("String", directive.Type.Name); 494Assert.Equal("String", directive.Type.Name); 507Assert.Equal("String", directive.Type.Name); 520Assert.Equal("String", directive.Type.Name); 533Assert.Equal("Object", directive.Type.Name); 546Assert.Equal("String", directive.Type.Name); 559Assert.Equal("String", directive.Type.Name); 572Assert.Equal("String", directive.Type.Name);
System\Xaml\XamlSchemaContextTests.cs (1)
1000Assert.Equal(expectedName, type.Name);
System\Xaml\XamlTypeTests.cs (4)
36Assert.Equal(unknownTypeName, type.Name); 66Assert.Equal(typeName, type.Name); 92Assert.Equal(expectedName, type.Name); 112Assert.Equal(expectedName, type.Name);