public override string GenerateSignature(string name, Parameter[] parameters)
 {
     var signature = new StringBuilder();
     signature.Append(name);
     signature.Append(" ");
     signature.Append(string.Join("", parameters.OrderBy(x => x.Order).Select(x => x.SerpentSignature)));
     return signature.ToString();
 }
예제 #2
0
 public virtual string GenerateSignature(string name, Parameter[] parameters)
 {
     var signature = new StringBuilder();
     signature.Append(name);
     signature.Append("(");
     var paramNames = string.Join(",", parameters.OrderBy(x => x.Order).Select(x => x.Type));
     signature.Append(paramNames);
     signature.Append(")");
     return signature.ToString();
 }