in src/TestFramework/Messages/AvailableReturn.cs [49:85]
public override string ToString()
{
StringBuilder result = new StringBuilder();
result.Append("return ");
result.Append(Method.Name);
result.Append("(");
bool first = true;
Type returnType;
if (Method is MethodInfo)
returnType = ((MethodInfo)Method).ReturnType;
else
returnType = null;
bool hasReturn = returnType != null && returnType != typeof(void);
int i = hasReturn ? 1 : 0;
foreach (ParameterInfo pinfo in Method.GetParameters())
{
if (pinfo.ParameterType.IsByRef)
{
if (first)
first = false;
else
result.Append(",");
if ((pinfo.Attributes & ParameterAttributes.Out) != ParameterAttributes.None)
result.Append("out ");
else
result.Append("ref ");
result.Append(Parameters[i++]);
}
}
result.Append(")");
if (hasReturn)
{
result.Append("/");
result.Append(MessageRuntimeHelper.Describe(Parameters[0]));
}
return result.ToString();
}