Exemple #1
0
        internal PropertyInfo GetMemberAsSource(MemberInfo member, OneWayBinding binding)
        {
            EndpointMember cachedMemberInfo = GetMember(member);

            cachedMemberInfo.SourceBindings.Add(binding);

            return(cachedMemberInfo.Property);
        }
Exemple #2
0
        private EndpointMember GetMember(MemberInfo member)
        {
            EndpointMember cachedMemberInfo = null;

            if (!CachedMembers.ContainsKey(member.Name))
            {
                cachedMemberInfo = new EndpointMember(member as PropertyInfo);
                CachedMembers.Add(member.Name, cachedMemberInfo);
            }

            cachedMemberInfo = cachedMemberInfo ?? CachedMembers[member.Name];

            return(cachedMemberInfo);
        }