Exemplo n.º 1
0
        private static ImmutableArray <IIdentifier> GetNameParts(IIdentifier id1, IIdentifier id2, string name)
        {
            if (name is null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            var invokeIdPartCount = GetCount(name);
            var parts             = new IIdentifier[2 + invokeIdPartCount];

            parts[0] = id1;
            parts[1] = id2;

            SetParts(parts.AsSpan(start: 2, invokeIdPartCount), name);

            return(ImmutableArray.Create(parts));
        }