public Argument ( [ type, int index, int total, string namespaceHint ) : System.Linq | ||
type | [ | |
index | int | |
total | int | |
namespaceHint | string | |
Résultat | 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);
}
}