3 writes to _reflector
System.Xaml (3)
System\Xaml\XamlType.cs (3)
53_reflector = TypeReflector.UnknownReflector; 70_reflector = reflector ?? new TypeReflector(underlyingType); 1498Interlocked.CompareExchange(ref _reflector, reflector, null);
125 references to _reflector
System.Xaml (125)
System\Xaml\XamlType.cs (125)
75_reflector.Invoker = invoker; 83if (!_reflector.BaseTypeIsSet) 85_reflector.BaseType = LookupBaseType(); 88return _reflector.BaseType; 97if (_reflector.Invoker is null) 99_reflector.Invoker = LookupInvoker() ?? XamlTypeInvoker.UnknownInvoker; 102return _reflector.Invoker; 124return _reflector.IsUnknown; 201Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsDictionary"); 202if (_reflector.KeyType is null) 204_reflector.KeyType = LookupKeyType() ?? XamlLanguage.Object; 207return _reflector.KeyType; 220Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 221if (_reflector.ItemType is null) 223_reflector.ItemType = LookupItemType() ?? XamlLanguage.Object; 226return _reflector.ItemType; 241Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 242if (_reflector.AllowedContentTypes is null) 244_reflector.AllowedContentTypes = LookupAllowedContentTypes() ?? 248return _reflector.AllowedContentTypes; 261Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsCollection"); 262if (_reflector.ContentWrappers is null) 264_reflector.ContentWrappers = LookupContentWrappers() ?? 268return _reflector.ContentWrappers; 277if (!_reflector.TypeConverterIsSet) 279_reflector.TypeConverter = LookupTypeConverter(); 282return _reflector.TypeConverter; 291if (!_reflector.ValueSerializerIsSet) 293_reflector.ValueSerializer = LookupValueSerializer(); 296return _reflector.ValueSerializer; 305if (!_reflector.ContentPropertyIsSet) 307_reflector.ContentProperty = LookupContentProperty(); 310return _reflector.ContentProperty; 319if (!_reflector.DeferringLoaderIsSet) 321_reflector.DeferringLoader = LookupDeferringLoader(); 324return _reflector.DeferringLoader; 337Debug.Assert(_reflector is not null, "_reflector should have been initialized by IsMarkupExtension"); 338if (_reflector.MarkupExtensionReturnType is null) 340_reflector.MarkupExtensionReturnType = LookupMarkupExtensionReturnType() ?? XamlLanguage.Object; 343return _reflector.MarkupExtensionReturnType; 353if (!_reflector.Members.TryGetValue(name, out result) && !_reflector.Members.IsComplete) 356result = _reflector.Members.TryAdd(name, result); 365if (!_reflector.Members.IsComplete) 372_reflector.Members.TryAdd(member.Name, member); 375_reflector.Members.IsComplete = true; 379return _reflector.Members.Values; 388if (!_reflector.TryGetAliasedProperty(directive, out result)) 391_reflector.TryAddAliasedProperty(directive, result); 401if (!_reflector.AttachableMembers.TryGetValue(name, out result) && 402!_reflector.AttachableMembers.IsComplete) 405result = _reflector.AttachableMembers.TryAdd(name, result); 414if (!_reflector.AttachableMembers.IsComplete) 421_reflector.AttachableMembers.TryAdd(member.Name, member); 425_reflector.AttachableMembers.IsComplete = true; 428return _reflector.AttachableMembers.Values; 472if (!_reflector.TryGetPositionalParameters(parameterCount, out result)) 475result = _reflector.TryAddPositionalParameters(parameterCount, result); 523Debug.Assert(_reflector is not null, "_reflector should have been initialized by ItemType"); 524if (!_reflector.IsReadOnlyMethodIsSet) 528_reflector.IsReadOnlyMethod = CollectionReflector. 533_reflector.IsReadOnlyMethod = null; 537return _reflector.IsReadOnlyMethod; 545if (!_reflector.XamlSetMarkupExtensionHandlerIsSet) 547_reflector.XamlSetMarkupExtensionHandler = LookupSetMarkupExtensionHandler(); 550return _reflector.XamlSetMarkupExtensionHandler; 559if (!_reflector.XamlSetTypeConverterHandlerIsSet) 561_reflector.XamlSetTypeConverterHandler = LookupSetTypeConverterHandler(); 564return _reflector.XamlSetTypeConverterHandler; 578if (!_reflector.AddMethodIsSet) 581_reflector.AddMethod = CollectionReflector.LookupAddMethod(UnderlyingType, collectionKind); 584return _reflector.AddMethod; 597Debug.Assert(_reflector is not null, "_reflector should have been initialized by GetCollectionKind"); 598if (!_reflector.GetEnumeratorMethodIsSet) 600_reflector.GetEnumeratorMethod = CollectionReflector.GetEnumeratorMethod(UnderlyingType); 603return _reflector.GetEnumeratorMethod; 635if (_reflector.ExcludedReadOnlyMembers is null) 637_reflector.ExcludedReadOnlyMembers = LookupAllExcludedReadOnlyMembers() ?? ReadOnlyCollection<XamlMember>.Empty; 640return _reflector.ExcludedReadOnlyMembers; 774_reflector.AddMethod = addMethod; 824Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 825List<Type> wrapperTypes = _reflector.GetAllAttributeContents<Type>(typeof(ContentWrapperAttribute)); 861Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 862Type[] loaderTypes = _reflector.GetAttributeTypes(typeof(XamlDeferLoadAttribute), 2); 943if (_reflector is not null) 945return _reflector.IsUnknown; 955Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 956if (_reflector.IsAttributePresent(typeof(WhitespaceSignificantCollectionAttribute))) 969Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 970return _reflector.GetFlag(BoolTypeBits.WhitespaceSignificantCollection).Value; 1030Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1031Type returnType = _reflector.GetAttributeType(typeof(MarkupExtensionReturnTypeAttribute)); 1055return _reflector.LookupAllAttachableMembers(SchemaContext); 1069_reflector.LookupAllMembers(out properties, out events, out result); 1110PropertyInfo pi = _reflector.LookupProperty(name); 1123EventInfo ei = _reflector.LookupEvent(name); 1141if (_reflector.LookupAttachableProperty(name, out getter, out setter)) 1152setter = _reflector.LookupAttachableEvent(name); 1173if (_reflector.ReflectedPositionalParameters is null) 1175_reflector.ReflectedPositionalParameters = LookupAllPositionalParameters(); 1179_reflector.ReflectedPositionalParameters.TryGetValue(parameterCount, out result); 1208Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1209if (_reflector.IsAttributePresent(typeof(AmbientAttribute))) 1222Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1223return _reflector.GetFlag(BoolTypeBits.Ambient).Value; 1233Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1234Type converterType = _reflector.GetAttributeType(typeof(TypeConverterAttribute)); 1280Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1281Type converterType = _reflector.GetAttributeType(typeof(ValueSerializerAttribute)); 1324Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1325if (_reflector.IsAttributePresent(typeof(TrimSurroundingWhitespaceAttribute))) 1343Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1344bool? usable = _reflector.GetAttributeValue<bool>(typeof(UsableDuringInitializationAttribute)); 1420if (!_reflector.CustomAttributeProviderIsSet) 1422_reflector.CustomAttributeProvider = LookupCustomAttributeProvider(); 1426return _reflector.CustomAttributeProvider is not null || UnderlyingTypeInternal.Value is not null; 1504if (_reflector is null) 1513if (!_reflector.CollectionKindIsSet) 1515_reflector.CollectionKind = LookupCollectionKind(); 1518return _reflector.CollectionKind; 1524bool? result = _reflector.GetFlag(flagBit); 1528_reflector.SetFlag(flagBit, result.Value); 1657IList<PropertyInfo> excludedMembers = _reflector.LookupRemainingProperties(); 1811Debug.Assert(_reflector is not null, "_reflector should have been initialized by AreAttributesAvailable"); 1815result = _reflector.GetAttributeString(attributeType, out checkedInherited);