38 references to DeclaringType
PresentationFramework (8)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1377Type currentType = eventProperty.DeclaringType.UnderlyingType; 1387eventProperty.DeclaringType.UnderlyingType);
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
48property.DeclaringType.UnderlyingType == typeof(System.Windows.ResourceDictionary) &&
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (2)
242declaringType = xamlMember.DeclaringType; 283return xamlMember.DeclaringType;
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
138result = new WpfXamlMember(DependencyProperty, underlyingProperty, DeclaringType.SchemaContext, _useV3Rules); 309WpfXamlType wpfXType = DeclaringType as WpfXamlType;
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
155if (member != null && (wpfKnownType = member.DeclaringType as WpfKnownType) != null)
System.Xaml (20)
System\Xaml\Context\ObjectWriterContext.cs (2)
317throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 360if (frame.XamlType is not null && frame.XamlType.CanAssignTo(prop.DeclaringType))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
1357declaringType = property.DeclaringType; 1699declaringType = parentProperty.DeclaringType;
System\Xaml\Parser\XamlScanner.cs (1)
812attrProperty.DeclaringType.Name == "Glyphs");
System\Xaml\XamlMarkupExtensionWriter.cs (1)
415string 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)
641XamlType declaringType = xamlProperty.DeclaringType; 2143throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 3246if (member.DeclaringType.UnderlyingType == baseDeclaringType) 3251XamlType baseType = member.DeclaringType.BaseType; 3274baseType = baseMember.DeclaringType.BaseType;
System\Xaml\XamlXmlWriter.cs (4)
823XamlType xamlType = property.IsAttachable ? property.DeclaringType : type; 853if (property.DeclaringType == owningType) 859local = $"{GetTypeName(property.DeclaringType)}.{property.Name}"; 1254if (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());