Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AppendParameters()

static void System.Reflection.MethodBase.AppendParameters ( ref ValueStringBuilder sbParamList,
Type[] parameterTypes,
CallingConventions callingConvention )
inlinestaticpackageinherited

Definition at line 243 of file MethodBase.cs.

244 {
245 string s = "";
246 foreach (Type type in parameterTypes)
247 {
248 sbParamList.Append(s);
249 string text = type.FormatTypeName();
250 if (type.IsByRef)
251 {
252 sbParamList.Append(text.AsSpan().TrimEnd('&'));
253 sbParamList.Append(" ByRef");
254 }
255 else
256 {
257 sbParamList.Append(text);
258 }
259 s = ", ";
260 }
261 if ((callingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
262 {
263 sbParamList.Append(s);
264 sbParamList.Append("...");
265 }
266 }

References System.s, System.text, and System.type.

Referenced by System.Reflection.Emit.DynamicMethod.RTDynamicMethod.ToString(), System.Reflection.RuntimeConstructorInfo.ToString(), System.Reflection.RuntimeMethodInfo.ToString(), and System.Reflection.RuntimePropertyInfo.ToString().