3 writes to _reflector
System.Xaml (3)
System\Xaml\XamlType.cs (3)
54_reflector = TypeReflector.UnknownReflector; 71_reflector = reflector ?? new TypeReflector(underlyingType); 1394Interlocked.CompareExchange(ref _reflector, reflector, null);
125 references to _reflector
System.Xaml (125)
System\Xaml\XamlType.cs (125)
76_reflector.Invoker = invoker; 84if (!_reflector.BaseTypeIsSet) 86_reflector.BaseType = LookupBaseType(); 88return _reflector.BaseType; 97if (_reflector.Invoker is null) 99_reflector.Invoker = LookupInvoker() ?? XamlTypeInvoker.UnknownInvoker; 101return _reflector.Invoker; 122return _reflector.IsUnknown; 196Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsDictionary"); 197if (_reflector.KeyType is null) 199_reflector.KeyType = LookupKeyType() ?? XamlLanguage.Object; 201return _reflector.KeyType; 213Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 214if (_reflector.ItemType is null) 216_reflector.ItemType = LookupItemType() ?? XamlLanguage.Object; 218return _reflector.ItemType; 232Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 233if (_reflector.AllowedContentTypes is null) 235_reflector.AllowedContentTypes = LookupAllowedContentTypes() ?? 238return _reflector.AllowedContentTypes; 250Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsCollection"); 251if (_reflector.ContentWrappers is null) 253_reflector.ContentWrappers = LookupContentWrappers() ?? 256return _reflector.ContentWrappers; 265if (!_reflector.TypeConverterIsSet) 267_reflector.TypeConverter = LookupTypeConverter(); 269return _reflector.TypeConverter; 278if (!_reflector.ValueSerializerIsSet) 280_reflector.ValueSerializer = LookupValueSerializer(); 282return _reflector.ValueSerializer; 291if (!_reflector.ContentPropertyIsSet) 293_reflector.ContentProperty = LookupContentProperty(); 295return _reflector.ContentProperty; 304if (!_reflector.DeferringLoaderIsSet) 306_reflector.DeferringLoader = LookupDeferringLoader(); 308return _reflector.DeferringLoader; 320Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsMarkupExtension"); 321if (_reflector.MarkupExtensionReturnType is null) 323_reflector.MarkupExtensionReturnType = LookupMarkupExtensionReturnType() ?? XamlLanguage.Object; 325return _reflector.MarkupExtensionReturnType; 335if (!_reflector.Members.TryGetValue(name, out result) && !_reflector.Members.IsComplete) 338result = _reflector.Members.TryAdd(name, result); 346if (!_reflector.Members.IsComplete) 353_reflector.Members.TryAdd(member.Name, member); 356_reflector.Members.IsComplete = true; 360return _reflector.Members.Values; 369if (!_reflector.TryGetAliasedProperty(directive, out result)) 372_reflector.TryAddAliasedProperty(directive, result); 381if (!_reflector.AttachableMembers.TryGetValue(name, out result) && 382!_reflector.AttachableMembers.IsComplete) 385result = _reflector.AttachableMembers.TryAdd(name, result); 393if (!_reflector.AttachableMembers.IsComplete) 400_reflector.AttachableMembers.TryAdd(member.Name, member); 403_reflector.AttachableMembers.IsComplete = true; 405return _reflector.AttachableMembers.Values; 446if (!_reflector.TryGetPositionalParameters(parameterCount, out result)) 449result = _reflector.TryAddPositionalParameters(parameterCount, result); 495Debug.Assert(_reflector is not null, "_reflector should have been initialized by ItemType"); 496if (!_reflector.IsReadOnlyMethodIsSet) 500_reflector.IsReadOnlyMethod = CollectionReflector. 505_reflector.IsReadOnlyMethod = null; 508return _reflector.IsReadOnlyMethod; 516if (!_reflector.XamlSetMarkupExtensionHandlerIsSet) 518_reflector.XamlSetMarkupExtensionHandler = LookupSetMarkupExtensionHandler(); 520return _reflector.XamlSetMarkupExtensionHandler; 529if (!_reflector.XamlSetTypeConverterHandlerIsSet) 531_reflector.XamlSetTypeConverterHandler = LookupSetTypeConverterHandler(); 533return _reflector.XamlSetTypeConverterHandler; 546if (!_reflector.AddMethodIsSet) 549_reflector.AddMethod = CollectionReflector.LookupAddMethod(UnderlyingType, collectionKind); 551return _reflector.AddMethod; 563Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 564if (!_reflector.GetEnumeratorMethodIsSet) 566_reflector.GetEnumeratorMethod = CollectionReflector.GetEnumeratorMethod(UnderlyingType); 568return _reflector.GetEnumeratorMethod; 599if (_reflector.ExcludedReadOnlyMembers is null) 601_reflector.ExcludedReadOnlyMembers = LookupAllExcludedReadOnlyMembers() ?? EmptyList<XamlMember>.Value; 603return _reflector.ExcludedReadOnlyMembers; 728_reflector.AddMethod = addMethod; 772Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 773List<Type> wrapperTypes = _reflector.GetAllAttributeContents<Type>(typeof(ContentWrapperAttribute)); 809Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 810Type[] loaderTypes = _reflector.GetAttributeTypes(typeof(XamlDeferLoadAttribute), 2); 883if (_reflector is not null) 885return _reflector.IsUnknown; 894Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 895if (_reflector.IsAttributePresent(typeof(WhitespaceSignificantCollectionAttribute))) 906Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 907return _reflector.GetFlag(BoolTypeBits.WhitespaceSignificantCollection).Value; 964Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 965Type returnType = _reflector.GetAttributeType(typeof(MarkupExtensionReturnTypeAttribute)); 986return _reflector.LookupAllAttachableMembers(SchemaContext); 1000_reflector.LookupAllMembers(out properties, out events, out result); 1038PropertyInfo pi = _reflector.LookupProperty(name); 1049EventInfo ei = _reflector.LookupEvent(name); 1066if (_reflector.LookupAttachableProperty(name, out getter, out setter)) 1075setter = _reflector.LookupAttachableEvent(name); 1095if (_reflector.ReflectedPositionalParameters is null) 1097_reflector.ReflectedPositionalParameters = LookupAllPositionalParameters(); 1100_reflector.ReflectedPositionalParameters.TryGetValue(parameterCount, out result); 1128Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1129if (_reflector.IsAttributePresent(typeof(AmbientAttribute))) 1140Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1141return _reflector.GetFlag(BoolTypeBits.Ambient).Value; 1150Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1151Type converterType = _reflector.GetAttributeType(typeof(TypeConverterAttribute)); 1194Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1195Type converterType = _reflector.GetAttributeType(typeof(ValueSerializerAttribute)); 1236Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1237if (_reflector.IsAttributePresent(typeof(TrimSurroundingWhitespaceAttribute))) 1253Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1254bool? usable = _reflector.GetAttributeValue<bool>(typeof(UsableDuringInitializationAttribute)); 1322if (!_reflector.CustomAttributeProviderIsSet) 1324_reflector.CustomAttributeProvider = LookupCustomAttributeProvider(); 1327return _reflector.CustomAttributeProvider is not null || UnderlyingTypeInternal.Value is not null; 1400if (_reflector is null) 1409if (!_reflector.CollectionKindIsSet) 1411_reflector.CollectionKind = LookupCollectionKind(); 1413return _reflector.CollectionKind; 1419bool? result = _reflector.GetFlag(flagBit); 1423_reflector.SetFlag(flagBit, result.Value); 1542IList<PropertyInfo> excludedMembers = _reflector.LookupRemainingProperties(); 1688Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1692result = _reflector.GetAttributeString(attributeType, out checkedInherited);