internal PropertyInfo GetMemberAsSource(MemberInfo member, OneWayBinding binding) { EndpointMember cachedMemberInfo = GetMember(member); cachedMemberInfo.SourceBindings.Add(binding); return(cachedMemberInfo.Property); }
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); }