public string Get(TypeParts parameter) { var parts = parameter.GetArguments(); var arguments = parts.HasValue ? $"[{string.Join(",", parts.Value.Select(_selector))}]" : null; var dimensions = parameter.Dimensions.HasValue ? $"^{string.Join(",", parameter.Dimensions.Value.ToArray())}" : null; var result = $"{_formatter.Get(parameter)}{arguments}{dimensions}"; return(result); }
static TypeParts Copy(TypeParts parameter) { var array = parameter.GetArguments() ?.ToArray(); var result = new TypeParts(string.Concat(parameter.Name, Extension), parameter.Identifier, array != null ? array.ToImmutableArray : (Func <ImmutableArray <TypeParts> >)null, parameter.Dimensions); return(result); }
TypeParts Get(TypeParts parameter) { var arguments = parameter.GetArguments(); var result = new TypeParts(parameter.Name, Prefix(parameter.Identifier), arguments.HasValue ? arguments.Value.Select(_selector) .ToImmutableArray : (Func <ImmutableArray <TypeParts> >)null, parameter.Dimensions); return(result); }