38 references to DeclaringType
PresentationFramework (8)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1378Type currentType = eventProperty.DeclaringType.UnderlyingType; 1388eventProperty.DeclaringType.UnderlyingType);
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
49property.DeclaringType.UnderlyingType == typeof(System.Windows.ResourceDictionary) &&
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (2)
243declaringType = xamlMember.DeclaringType; 284return xamlMember.DeclaringType;
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
139result = new WpfXamlMember(DependencyProperty, underlyingProperty, DeclaringType.SchemaContext, _useV3Rules); 310WpfXamlType wpfXType = DeclaringType as WpfXamlType;
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
156if (member != null && (wpfKnownType = member.DeclaringType as WpfKnownType) != null)
System.Xaml (20)
System\Xaml\Context\ObjectWriterContext.cs (2)
319throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 362if (frame.XamlType is not null && frame.XamlType.CanAssignTo(prop.DeclaringType))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
1358declaringType = property.DeclaringType; 1700declaringType = parentProperty.DeclaringType;
System\Xaml\Parser\XamlScanner.cs (1)
813attrProperty.DeclaringType.Name == "Glyphs");
System\Xaml\XamlMarkupExtensionWriter.cs (1)
419string local = $"{property.DeclaringType.Name}.{property.Name}";
System\Xaml\XamlMember.cs (5)
345return DeclaringType.GetXamlNamespaces(); 1045Debug.Assert(DeclaringType is not null, "XamlDirective should not call into base.GetHashCode"); 1046return (Name is null ? 0 : Name.GetHashCode()) ^ (int)_memberType ^ DeclaringType.GetHashCode(); 1081return xamlMember1.DeclaringType == xamlMember2.DeclaringType &&
System\Xaml\XamlObjectReader.cs (5)
642XamlType declaringType = xamlProperty.DeclaringType; 2144throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 3247if (member.DeclaringType.UnderlyingType == baseDeclaringType) 3252XamlType baseType = member.DeclaringType.BaseType; 3275baseType = baseMember.DeclaringType.BaseType;
System\Xaml\XamlXmlWriter.cs (4)
826XamlType xamlType = property.IsAttachable ? property.DeclaringType : type; 856if (property.DeclaringType == owningType) 862local = $"{GetTypeName(property.DeclaringType)}.{property.Name}"; 1263if (frame.Member.DeclaringType == XamlLanguage.XData)
System.Xaml.Tests (10)
System\Xaml\XamlMemberTests.cs (10)
26Assert.Equal(type, member.DeclaringType); 57Assert.Equal(new XamlType(propertyInfo.DeclaringType, schemaContext), member.DeclaringType); 79Assert.Equal(new XamlType(propertyInfo.DeclaringType, schemaContext), member.DeclaringType); 113Assert.Equal(new XamlType(eventInfo.DeclaringType, schemaContext), member.DeclaringType); 135Assert.Equal(new XamlType(eventInfo.DeclaringType, schemaContext), member.DeclaringType); 172Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 195Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 259Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 280Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 2190Assert.Equal(member.DeclaringType.GetXamlNamespaces(), member.GetXamlNamespaces());