System\Xaml\Context\XamlContext.cs (14)
43public XamlMember GetXamlProperty(XamlType xamlType, string propertyName, XamlType rootObjectType)
49XamlMember member = xamlType.GetMember(propertyName);
53public XamlMember GetXamlAttachableProperty(XamlType xamlType, string propertyName)
59XamlMember member = xamlType.GetAttachableMember(propertyName);
74public XamlMember GetDottedProperty(XamlType tagType, string tagNamespace, XamlPropertyName propName, bool tagIsRoot)
80XamlMember property = null;
157public XamlMember GetNoDotAttributeProperty(XamlType tagType, XamlPropertyName propName,
160XamlMember property = null;
310internal XamlMember ResolveDirectiveProperty(string xamlNS, string name)
320internal virtual bool IsVisible(XamlMember member, XamlType rootObjectType)
325private XamlMember CreateUnknownMember(XamlType declaringType, string name)
330private XamlMember CreateUnknownAttachableMember(XamlType declaringType, string name)
352private XamlMember GetInstanceOrAttachableProperty(XamlType tagType, string propName, XamlType rootTagType)
354XamlMember property = GetXamlProperty(tagType, propName, rootTagType);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (26)
176protected virtual bool OnSetValue(object eventSender, XamlMember member, object value)
262XamlMember parentProperty = (_context.CurrentType is null && _context.Depth > 1)
556public override void WriteStartMember(XamlMember property)
682XamlMember property;
821XamlMember currentProperty = _context.CurrentProperty;
839XamlMember parentProperty = currentProperty;
1045XamlMember keyProperty = instanceType.GetAliasedProperty(XamlLanguage.Key);
1066bool IsConstructionDirective(XamlMember xamlMember)
1078bool IsTextConstructionDirective(XamlMember xamlMember)
1089bool IsDirectiveAllowedOnNullInstance(XamlMember xamlMember, XamlType xamlType)
1272object value, XamlMember property, string targetName)
1278object value, XamlMember property, string targetName, IAddLineInfo lineInfo)
1299XamlMember property = ctx.ParentProperty;
1474private void Logic_DuplicatePropertyCheck(ObjectWriterContext ctx, XamlMember property, bool onParent)
1478HashSet<XamlMember> setProperties = onParent ? ctx.ParentAssignedProperties : ctx.CurrentAssignedProperties;
1505Dictionary<XamlMember, object> propertyValues = ctx.CurrentPreconstructionPropertyValues;
1508foreach (XamlMember prop in propertyValues.Keys)
1538private object Logic_PushAndPopAProvideValueStackFrame(ObjectWriterContext ctx, XamlMember prop, XAML3.MarkupExtension me, bool useIRME)
1540XamlMember savedProp = ctx.CurrentProperty;
1562private void Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop,
1585XamlMember propertyForDirective = xamlType.GetAliasedProperty(prop as XamlDirective);
1651XamlMember parentProperty = ctx.ParentProperty;
1946XamlMember parentProperty = ctx.ParentProperty;
2151private void SetValue(object inst, XamlMember property, object value)
2196XamlMember property = ctx.ParentProperty;
2218XamlMember property, XamlSavedContext deferredMarkupExtensionContext)
System\Xaml\Runtime\ClrObjectRuntime.cs (7)
142XamlMember property)
233public override object GetValue(object obj, XamlMember property, bool failIfWriteOnly)
269protected virtual object GetValue(XamlMember member, object obj)
274public override void SetValue(object inst, XamlMember property, object value)
294protected virtual void SetValue(XamlMember member, object obj, object value)
523public override void SetXmlInstance(object inst, XamlMember property, XAML3.XData xData)
608public override ShouldSerializeResult ShouldSerialize(XamlMember member, object instance)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (6)
77public override object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<TypeConverter> ts, object value, XamlMember property)
283public override object GetValue(object obj, XamlMember property, bool failIfWriteOnly)
328public override void SetValue(object obj, XamlMember property, object value)
356public override void SetXmlInstance(object inst, XamlMember property, XData xData)
386public override ShouldSerializeResult ShouldSerialize(XamlMember member, object instance)
431private static bool HasDefaultInvoker(XamlMember xamlMember)
System\Xaml\Schema\TypeReflector.cs (35)
32private ThreadSafeDictionary<string, XamlMember> _nonAttachableMemberCache;
33private ThreadSafeDictionary<string, XamlMember> _attachableMemberCache;
41private ConcurrentDictionary<XamlDirective, XamlMember> _aliasedProperties;
52private NullableReference<XamlMember> _contentProperty;
53private NullableReference<XamlMember> _runtimeNameProperty;
54private NullableReference<XamlMember> _xmlLangProperty;
55private NullableReference<XamlMember> _dictionaryKeyProperty;
56private NullableReference<XamlMember> _uidProperty;
73_nonAttachableMemberCache = new ThreadSafeDictionary<string, XamlMember>();
75_attachableMemberCache = new ThreadSafeDictionary<string, XamlMember>();
166internal ThreadSafeDictionary<string, XamlMember> AttachableMembers
173new ThreadSafeDictionary<string, XamlMember>(), null);
198internal XamlMember ContentProperty
216internal ICollection<XamlMember> ExcludedReadOnlyMembers { get; set; }
237internal ThreadSafeDictionary<string, XamlMember> Members
244new ThreadSafeDictionary<string, XamlMember>(), null);
308internal bool TryGetAliasedProperty(XamlDirective directive, out XamlMember member)
343internal void TryAddAliasedProperty(XamlDirective directive, XamlMember member)
366var dict = XamlSchemaContext.CreateDictionary<XamlDirective, XamlMember>();
393internal static XamlMember LookupNameScopeProperty(XamlType xamlType)
407XamlMember prop;
448out ICollection<EventInfo> newEvents, out List<XamlMember> knownMembers)
455knownMembers = new List<XamlMember>(propList.Length + eventList.Length);
469private IList<PropertyInfo> FilterProperties(PropertyInfo[] propList, List<XamlMember> knownMembers, bool skipKnownNegatives)
479XamlMember knownMember;
530private ICollection<EventInfo> FilterEvents(EventInfo[] eventList, List<XamlMember> knownMembers)
536XamlMember knownMember;
948internal IList<XamlMember> LookupAllAttachableMembers(XamlSchemaContext schemaContext)
953List<XamlMember> result = new List<XamlMember>();
965private void GetOrCreateAttachableProperties(XamlSchemaContext schemaContext, List<XamlMember> result,
971XamlMember member = null;
997XamlMember member = null;
1007List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders)
1012XamlMember member = null;
System\Xaml\XamlObjectReader.cs (53)
145public override XamlMember Member
185internal static DesignerSerializationVisibility GetSerializationVisibility(XamlMember member)
187XamlMember result = XamlMemberExtensions.GetNearestMember(member,
192internal static string GetConstructorArgument(XamlMember member)
194XamlMember result = XamlMemberExtensions.GetNearestMember(member,
199internal static bool GetDefaultValue(XamlMember member, out object value)
201XamlMember result = XamlMemberExtensions.GetNearestMember(member,
321var member = XamlNode.Member;
333bool MemberRequiresNamespaceHoisting(XamlMember member)
358(object source, XamlMember attachedProperty, object value, SerializerContext context)
394object sourceOrValue, XamlMember property, XamlType propertyType, SerializerContext context)
477XamlMember dkp = typeOfValue.GetAliasedProperty(XamlLanguage.Key);
500object source, XamlMember property, SerializerContext context)
530static MemberMarkupInfo ForSequence(object source, XamlMember property, SerializerContext context, bool isAttachable)
558static MemberMarkupInfo ForDictionary(object source, XamlMember property, SerializerContext context, bool isAttachable)
585static MemberMarkupInfo ForXmlSerializable(object source, XamlMember property, SerializerContext context)
637object source, XamlMember xamlProperty, SerializerContext context)
702public static MemberMarkupInfo ForSequenceItems(object sourceOrValue, XamlMember property, XamlType xamlType, SerializerContext context, bool allowReadOnly)
840object propertyValue, XamlMember xamlProperty, SerializerContext context)
851object propertyValue, ValueSerializer propertyValueSerializer, TypeConverter propertyConverter, bool isXamlTemplate, XamlMember xamlProperty, SerializerContext context)
903static void ThrowIfPropertiesAreAttached(object value, XamlMember property, SerializerContext context)
920static bool ShouldWriteProperty(object source, XamlMember property, SerializerContext context)
1057bool IsMemberOnlyDependentOnAttributableMembers(XamlMember member, HashSet<string> namesOfAttributableProperties)
1059foreach (var dependingProperty in member.DependsOn)
1103foreach (var dependingProperty in property.XamlNode.Member.DependsOn)
1466foreach (var property in propertyList)
1588var property = propertyInfo.XamlNode.Member;
1615var ctorArgProps = new List<XamlMember>();
1617foreach (XamlMember p in properties)
1624foreach (XamlMember p in readOnlyProperties)
1646XamlMember matchingProperty = null;
1647foreach (var potentialProperty in ctorArgProps)
1871XamlMember attachedProperty = owningType.GetAttachableMember(ap.Key.MemberName);
2096static bool PropertyUsedInMethodSignature(XamlMember property, ParameterInfo[] methodParameters)
2129XamlMember property = propertyInfo.XamlNode.Member;
2193var xProperty = x.XamlNode.Member;
2194var yProperty = y.XamlNode.Member;
2270var xProperty = x.XamlNode.Member;
2271var yProperty = y.XamlNode.Member;
2308internal static bool CanPropertyXamlRoundtrip(XamlMember property, SerializerContext context)
2314static List<XamlMember> GetXamlSerializableProperties(XamlType type, SerializerContext context)
2316List<XamlMember> propertyList = new List<XamlMember>();
2317foreach (XamlMember property in type.GetAllMembers())
2729XamlMember runtimeNameProperty = type.GetAliasedProperty(XamlLanguage.Name);
2767public bool IsPropertyReadVisible(XamlMember property)
2777public bool IsPropertyWriteVisible(XamlMember property)
3208internal static XamlMember GetNearestMember(XamlMember member, GetNearestBaseMemberCriterion criterion)
3228XamlMember baseMember = baseType.GetMember(member.Name);
3250private static XamlMember GetExcludedReadOnlyMember(XamlType type, string name)
3252foreach (XamlMember member in type.GetAllExcludedReadOnlyMembers())
3262private static bool MeetsCriterion(XamlMember member, GetNearestBaseMemberCriterion criterion)
System\Xaml\XamlSchemaContext.cs (13)
467private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> _masterMemberList;
510private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> MasterMemberList
515Interlocked.CompareExchange(ref _masterMemberList, CreateDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember>(), null);
568ICollection<XamlMember> members = type.GetAllMembers();
569foreach (XamlMember member in members)
605internal virtual XamlMember GetProperty(PropertyInfo pi)
608XamlMember member;
617internal virtual XamlMember GetEvent(EventInfo ei)
620XamlMember member;
630internal virtual XamlMember GetAttachableProperty(string name, MethodInfo getter, MethodInfo setter)
632XamlMember property;
642internal virtual XamlMember GetAttachableEvent(string name, MethodInfo adder)
644XamlMember property;