public Member GetIdentifierOrNull(Type type) { return(_idMemberCache.GetOrAdd(TypeKey.ForTypeId(type), key => { var typeMembers = GlobalContext.Instance.MemberCache.GetSourceMembers(key.Type); return typeMembers.FirstOrDefault(IsIdentifier); })); }
public Member GetIdentifierOrNull(Type type) => GetIdentifierOrNull(TypeKey.ForTypeId(type));