ApiParser.Argument.Argument C# (CSharp) Method

Argument() public method

public Argument ( [ type, int index, int total, string namespaceHint ) : System.Linq
type [
index int
total int
namespaceHint string
return System.Linq
        public Argument([NotNull] string type, int index, int total, string namespaceHint)
        {
            Name = total > 1 ? $"arg{index + 1}" : @"arg";

            if (type.Contains(' '))
            {
                var parts = type.Split(' ');
                Type = new ApiType(parts[0], namespaceHint);
                Name = parts[1];
            }
            else
            {
                Type = new ApiType(type, namespaceHint);
            }
        }
Argument