System\Xaml\Context\XamlContext.cs (14)
46public XamlMember GetXamlProperty(XamlType xamlType, string propertyName, XamlType rootObjectType)
52XamlMember member = xamlType.GetMember(propertyName);
56public XamlMember GetXamlAttachableProperty(XamlType xamlType, string propertyName)
62XamlMember member = xamlType.GetAttachableMember(propertyName);
77public XamlMember GetDottedProperty(XamlType tagType, string tagNamespace, XamlPropertyName propName, bool tagIsRoot)
83XamlMember property = null;
160public XamlMember GetNoDotAttributeProperty(XamlType tagType, XamlPropertyName propName,
163XamlMember property = null;
313internal XamlMember ResolveDirectiveProperty(string xamlNS, string name)
323internal virtual bool IsVisible(XamlMember member, XamlType rootObjectType)
328private XamlMember CreateUnknownMember(XamlType declaringType, string name)
333private XamlMember CreateUnknownAttachableMember(XamlType declaringType, string name)
355private XamlMember GetInstanceOrAttachableProperty(XamlType tagType, string propName, XamlType rootTagType)
357XamlMember property = GetXamlProperty(tagType, propName, rootTagType);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (26)
178protected virtual bool OnSetValue(object eventSender, XamlMember member, object value)
264XamlMember parentProperty = (_context.CurrentType == null && _context.Depth > 1)
558public override void WriteStartMember(XamlMember property)
684XamlMember property;
823XamlMember currentProperty = _context.CurrentProperty;
841XamlMember parentProperty = currentProperty;
1047XamlMember keyProperty = instanceType.GetAliasedProperty(XamlLanguage.Key);
1068bool IsConstructionDirective(XamlMember xamlMember)
1080bool IsTextConstructionDirective(XamlMember xamlMember)
1091bool IsDirectiveAllowedOnNullInstance(XamlMember xamlMember, XamlType xamlType)
1274object value, XamlMember property, string targetName)
1280object value, XamlMember property, string targetName, IAddLineInfo lineInfo)
1301XamlMember property = ctx.ParentProperty;
1476private void Logic_DuplicatePropertyCheck(ObjectWriterContext ctx, XamlMember property, bool onParent)
1480HashSet<XamlMember> setProperties = onParent ? ctx.ParentAssignedProperties : ctx.CurrentAssignedProperties;
1507Dictionary<XamlMember, object> propertyValues = ctx.CurrentPreconstructionPropertyValues;
1510foreach (XamlMember prop in propertyValues.Keys)
1540private object Logic_PushAndPopAProvideValueStackFrame(ObjectWriterContext ctx, XamlMember prop, XAML3.MarkupExtension me, bool useIRME)
1542XamlMember savedProp = ctx.CurrentProperty;
1564private void Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop,
1587XamlMember propertyForDirective = xamlType.GetAliasedProperty(prop as XamlDirective);
1653XamlMember parentProperty = ctx.ParentProperty;
1948XamlMember parentProperty = ctx.ParentProperty;
2153private void SetValue(object inst, XamlMember property, object value)
2198XamlMember property = ctx.ParentProperty;
2220XamlMember property, XamlSavedContext deferredMarkupExtensionContext)
System\Xaml\Runtime\ClrObjectRuntime.cs (7)
144XamlMember property)
235public override object GetValue(object obj, XamlMember property, bool failIfWriteOnly)
271protected virtual object GetValue(XamlMember member, object obj)
276public override void SetValue(object inst, XamlMember property, object value)
296protected virtual void SetValue(XamlMember member, object obj, object value)
525public override void SetXmlInstance(object inst, XamlMember property, XAML3.XData xData)
610public override ShouldSerializeResult ShouldSerialize(XamlMember member, object instance)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (6)
79public override object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<TypeConverter> ts, object value, XamlMember property)
285public override object GetValue(object obj, XamlMember property, bool failIfWriteOnly)
330public override void SetValue(object obj, XamlMember property, object value)
358public override void SetXmlInstance(object inst, XamlMember property, XData xData)
388public override ShouldSerializeResult ShouldSerialize(XamlMember member, object instance)
433private static bool HasDefaultInvoker(XamlMember xamlMember)
System\Xaml\Schema\TypeReflector.cs (35)
34private ThreadSafeDictionary<string, XamlMember> _nonAttachableMemberCache;
35private ThreadSafeDictionary<string, XamlMember> _attachableMemberCache;
43private ConcurrentDictionary<XamlDirective, XamlMember> _aliasedProperties;
54private NullableReference<XamlMember> _contentProperty;
55private NullableReference<XamlMember> _runtimeNameProperty;
56private NullableReference<XamlMember> _xmlLangProperty;
57private NullableReference<XamlMember> _dictionaryKeyProperty;
58private NullableReference<XamlMember> _uidProperty;
75_nonAttachableMemberCache = new ThreadSafeDictionary<string, XamlMember>();
77_attachableMemberCache = new ThreadSafeDictionary<string, XamlMember>();
168internal ThreadSafeDictionary<string, XamlMember> AttachableMembers
175new ThreadSafeDictionary<string, XamlMember>(), null);
200internal XamlMember ContentProperty
218internal ICollection<XamlMember> ExcludedReadOnlyMembers { get; set; }
239internal ThreadSafeDictionary<string, XamlMember> Members
246new ThreadSafeDictionary<string, XamlMember>(), null);
310internal bool TryGetAliasedProperty(XamlDirective directive, out XamlMember member)
345internal void TryAddAliasedProperty(XamlDirective directive, XamlMember member)
368var dict = XamlSchemaContext.CreateDictionary<XamlDirective, XamlMember>();
395internal static XamlMember LookupNameScopeProperty(XamlType xamlType)
409XamlMember prop;
450out ICollection<EventInfo> newEvents, out List<XamlMember> knownMembers)
457knownMembers = new List<XamlMember>(propList.Length + eventList.Length);
471private IList<PropertyInfo> FilterProperties(PropertyInfo[] propList, List<XamlMember> knownMembers, bool skipKnownNegatives)
481XamlMember knownMember;
532private ICollection<EventInfo> FilterEvents(EventInfo[] eventList, List<XamlMember> knownMembers)
538XamlMember knownMember;
950internal IList<XamlMember> LookupAllAttachableMembers(XamlSchemaContext schemaContext)
955List<XamlMember> result = new List<XamlMember>();
967private void GetOrCreateAttachableProperties(XamlSchemaContext schemaContext, List<XamlMember> result,
973XamlMember member = null;
999XamlMember member = null;
1009List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders)
1014XamlMember member = null;
System\Xaml\XamlObjectReader.cs (53)
150public override XamlMember Member
190internal static DesignerSerializationVisibility GetSerializationVisibility(XamlMember member)
192XamlMember result = XamlMemberExtensions.GetNearestMember(member,
197internal static string GetConstructorArgument(XamlMember member)
199XamlMember result = XamlMemberExtensions.GetNearestMember(member,
204internal static bool GetDefaultValue(XamlMember member, out object value)
206XamlMember result = XamlMemberExtensions.GetNearestMember(member,
326var member = XamlNode.Member;
338bool MemberRequiresNamespaceHoisting(XamlMember member)
363(object source, XamlMember attachedProperty, object value, SerializerContext context)
399object sourceOrValue, XamlMember property, XamlType propertyType, SerializerContext context)
482XamlMember dkp = typeOfValue.GetAliasedProperty(XamlLanguage.Key);
505object source, XamlMember property, SerializerContext context)
535static MemberMarkupInfo ForSequence(object source, XamlMember property, SerializerContext context, bool isAttachable)
563static MemberMarkupInfo ForDictionary(object source, XamlMember property, SerializerContext context, bool isAttachable)
590static MemberMarkupInfo ForXmlSerializable(object source, XamlMember property, SerializerContext context)
642object source, XamlMember xamlProperty, SerializerContext context)
707public static MemberMarkupInfo ForSequenceItems(object sourceOrValue, XamlMember property, XamlType xamlType, SerializerContext context, bool allowReadOnly)
845object propertyValue, XamlMember xamlProperty, SerializerContext context)
856object propertyValue, ValueSerializer propertyValueSerializer, TypeConverter propertyConverter, bool isXamlTemplate, XamlMember xamlProperty, SerializerContext context)
908static void ThrowIfPropertiesAreAttached(object value, XamlMember property, SerializerContext context)
925static bool ShouldWriteProperty(object source, XamlMember property, SerializerContext context)
1062bool IsMemberOnlyDependentOnAttributableMembers(XamlMember member, HashSet<string> namesOfAttributableProperties)
1064foreach (var dependingProperty in member.DependsOn)
1108foreach (var dependingProperty in property.XamlNode.Member.DependsOn)
1471foreach (var property in propertyList)
1593var property = propertyInfo.XamlNode.Member;
1620var ctorArgProps = new List<XamlMember>();
1622foreach (XamlMember p in properties)
1629foreach (XamlMember p in readOnlyProperties)
1651XamlMember matchingProperty = null;
1652foreach (var potentialProperty in ctorArgProps)
1876XamlMember attachedProperty = owningType.GetAttachableMember(ap.Key.MemberName);
2101static bool PropertyUsedInMethodSignature(XamlMember property, ParameterInfo[] methodParameters)
2134XamlMember property = propertyInfo.XamlNode.Member;
2198var xProperty = x.XamlNode.Member;
2199var yProperty = y.XamlNode.Member;
2275var xProperty = x.XamlNode.Member;
2276var yProperty = y.XamlNode.Member;
2313internal static bool CanPropertyXamlRoundtrip(XamlMember property, SerializerContext context)
2319static List<XamlMember> GetXamlSerializableProperties(XamlType type, SerializerContext context)
2321List<XamlMember> propertyList = new List<XamlMember>();
2322foreach (XamlMember property in type.GetAllMembers())
2734XamlMember runtimeNameProperty = type.GetAliasedProperty(XamlLanguage.Name);
2772public bool IsPropertyReadVisible(XamlMember property)
2782public bool IsPropertyWriteVisible(XamlMember property)
3213internal static XamlMember GetNearestMember(XamlMember member, GetNearestBaseMemberCriterion criterion)
3233XamlMember baseMember = baseType.GetMember(member.Name);
3255private static XamlMember GetExcludedReadOnlyMember(XamlType type, string name)
3257foreach (XamlMember member in type.GetAllExcludedReadOnlyMembers())
3267private static bool MeetsCriterion(XamlMember member, GetNearestBaseMemberCriterion criterion)
System\Xaml\XamlSchemaContext.cs (13)
469private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> _masterMemberList;
512private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> MasterMemberList
517Interlocked.CompareExchange(ref _masterMemberList, CreateDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember>(), null);
570ICollection<XamlMember> members = type.GetAllMembers();
571foreach (XamlMember member in members)
607internal virtual XamlMember GetProperty(PropertyInfo pi)
610XamlMember member;
619internal virtual XamlMember GetEvent(EventInfo ei)
622XamlMember member;
632internal virtual XamlMember GetAttachableProperty(string name, MethodInfo getter, MethodInfo setter)
634XamlMember property;
644internal virtual XamlMember GetAttachableEvent(string name, MethodInfo adder)
646XamlMember property;