3 writes to _reflector
System.Xaml (3)
System\Xaml\XamlType.cs (3)
54_reflector = TypeReflector.UnknownReflector; 71_reflector = reflector ?? new TypeReflector(underlyingType); 1499Interlocked.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(); 89return _reflector.BaseType; 98if (_reflector.Invoker is null) 100_reflector.Invoker = LookupInvoker() ?? XamlTypeInvoker.UnknownInvoker; 103return _reflector.Invoker; 125return _reflector.IsUnknown; 202Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsDictionary"); 203if (_reflector.KeyType is null) 205_reflector.KeyType = LookupKeyType() ?? XamlLanguage.Object; 208return _reflector.KeyType; 221Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 222if (_reflector.ItemType is null) 224_reflector.ItemType = LookupItemType() ?? XamlLanguage.Object; 227return _reflector.ItemType; 242Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 243if (_reflector.AllowedContentTypes is null) 245_reflector.AllowedContentTypes = LookupAllowedContentTypes() ?? 249return _reflector.AllowedContentTypes; 262Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsCollection"); 263if (_reflector.ContentWrappers is null) 265_reflector.ContentWrappers = LookupContentWrappers() ?? 269return _reflector.ContentWrappers; 278if (!_reflector.TypeConverterIsSet) 280_reflector.TypeConverter = LookupTypeConverter(); 283return _reflector.TypeConverter; 292if (!_reflector.ValueSerializerIsSet) 294_reflector.ValueSerializer = LookupValueSerializer(); 297return _reflector.ValueSerializer; 306if (!_reflector.ContentPropertyIsSet) 308_reflector.ContentProperty = LookupContentProperty(); 311return _reflector.ContentProperty; 320if (!_reflector.DeferringLoaderIsSet) 322_reflector.DeferringLoader = LookupDeferringLoader(); 325return _reflector.DeferringLoader; 338Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsMarkupExtension"); 339if (_reflector.MarkupExtensionReturnType is null) 341_reflector.MarkupExtensionReturnType = LookupMarkupExtensionReturnType() ?? XamlLanguage.Object; 344return _reflector.MarkupExtensionReturnType; 354if (!_reflector.Members.TryGetValue(name, out result) && !_reflector.Members.IsComplete) 357result = _reflector.Members.TryAdd(name, result); 366if (!_reflector.Members.IsComplete) 373_reflector.Members.TryAdd(member.Name, member); 376_reflector.Members.IsComplete = true; 380return _reflector.Members.Values; 389if (!_reflector.TryGetAliasedProperty(directive, out result)) 392_reflector.TryAddAliasedProperty(directive, result); 402if (!_reflector.AttachableMembers.TryGetValue(name, out result) && 403!_reflector.AttachableMembers.IsComplete) 406result = _reflector.AttachableMembers.TryAdd(name, result); 415if (!_reflector.AttachableMembers.IsComplete) 422_reflector.AttachableMembers.TryAdd(member.Name, member); 426_reflector.AttachableMembers.IsComplete = true; 429return _reflector.AttachableMembers.Values; 473if (!_reflector.TryGetPositionalParameters(parameterCount, out result)) 476result = _reflector.TryAddPositionalParameters(parameterCount, result); 524Debug.Assert(_reflector is not null, "_reflector should have been initialized by ItemType"); 525if (!_reflector.IsReadOnlyMethodIsSet) 529_reflector.IsReadOnlyMethod = CollectionReflector. 534_reflector.IsReadOnlyMethod = null; 538return _reflector.IsReadOnlyMethod; 546if (!_reflector.XamlSetMarkupExtensionHandlerIsSet) 548_reflector.XamlSetMarkupExtensionHandler = LookupSetMarkupExtensionHandler(); 551return _reflector.XamlSetMarkupExtensionHandler; 560if (!_reflector.XamlSetTypeConverterHandlerIsSet) 562_reflector.XamlSetTypeConverterHandler = LookupSetTypeConverterHandler(); 565return _reflector.XamlSetTypeConverterHandler; 579if (!_reflector.AddMethodIsSet) 582_reflector.AddMethod = CollectionReflector.LookupAddMethod(UnderlyingType, collectionKind); 585return _reflector.AddMethod; 598Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 599if (!_reflector.GetEnumeratorMethodIsSet) 601_reflector.GetEnumeratorMethod = CollectionReflector.GetEnumeratorMethod(UnderlyingType); 604return _reflector.GetEnumeratorMethod; 636if (_reflector.ExcludedReadOnlyMembers is null) 638_reflector.ExcludedReadOnlyMembers = LookupAllExcludedReadOnlyMembers() ?? EmptyList<XamlMember>.Value; 641return _reflector.ExcludedReadOnlyMembers; 775_reflector.AddMethod = addMethod; 825Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 826List<Type> wrapperTypes = _reflector.GetAllAttributeContents<Type>(typeof(ContentWrapperAttribute)); 862Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 863Type[] loaderTypes = _reflector.GetAttributeTypes(typeof(XamlDeferLoadAttribute), 2); 944if (_reflector is not null) 946return _reflector.IsUnknown; 956Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 957if (_reflector.IsAttributePresent(typeof(WhitespaceSignificantCollectionAttribute))) 970Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 971return _reflector.GetFlag(BoolTypeBits.WhitespaceSignificantCollection).Value; 1031Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1032Type returnType = _reflector.GetAttributeType(typeof(MarkupExtensionReturnTypeAttribute)); 1056return _reflector.LookupAllAttachableMembers(SchemaContext); 1070_reflector.LookupAllMembers(out properties, out events, out result); 1111PropertyInfo pi = _reflector.LookupProperty(name); 1124EventInfo ei = _reflector.LookupEvent(name); 1142if (_reflector.LookupAttachableProperty(name, out getter, out setter)) 1153setter = _reflector.LookupAttachableEvent(name); 1174if (_reflector.ReflectedPositionalParameters is null) 1176_reflector.ReflectedPositionalParameters = LookupAllPositionalParameters(); 1180_reflector.ReflectedPositionalParameters.TryGetValue(parameterCount, out result); 1209Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1210if (_reflector.IsAttributePresent(typeof(AmbientAttribute))) 1223Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1224return _reflector.GetFlag(BoolTypeBits.Ambient).Value; 1234Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1235Type converterType = _reflector.GetAttributeType(typeof(TypeConverterAttribute)); 1281Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1282Type converterType = _reflector.GetAttributeType(typeof(ValueSerializerAttribute)); 1325Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1326if (_reflector.IsAttributePresent(typeof(TrimSurroundingWhitespaceAttribute))) 1344Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1345bool? usable = _reflector.GetAttributeValue<bool>(typeof(UsableDuringInitializationAttribute)); 1421if (!_reflector.CustomAttributeProviderIsSet) 1423_reflector.CustomAttributeProvider = LookupCustomAttributeProvider(); 1427return _reflector.CustomAttributeProvider is not null || UnderlyingTypeInternal.Value is not null; 1505if (_reflector is null) 1514if (!_reflector.CollectionKindIsSet) 1516_reflector.CollectionKind = LookupCollectionKind(); 1519return _reflector.CollectionKind; 1525bool? result = _reflector.GetFlag(flagBit); 1529_reflector.SetFlag(flagBit, result.Value); 1659IList<PropertyInfo> excludedMembers = _reflector.LookupRemainingProperties(); 1813Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1817result = _reflector.GetAttributeString(attributeType, out checkedInherited);