Beispiel #1
0
        public Member GetIdentifierOrNull(Type type)
        {
            return(_idMemberCache.GetOrAdd(TypeKey.ForTypeId(type), key =>
            {
                var typeMembers = GlobalContext.Instance.MemberCache.GetSourceMembers(key.Type);

                return typeMembers.FirstOrDefault(IsIdentifier);
            }));
        }
Beispiel #2
0
 public Member GetIdentifierOrNull(Type type) => GetIdentifierOrNull(TypeKey.ForTypeId(type));