internal string ConstructName(TypeNameFormatFlags formatFlags) { string s = (string)null; RuntimeTypeHandle.ConstructName(this.GetNativeHandle(), formatFlags, JitHelpers.GetStringHandleOnStack(ref s)); return(s); }
internal static string ConstructInstantiation(IRuntimeMethodInfo method, TypeNameFormatFlags format) { string result = null; RuntimeMethodHandle.ConstructInstantiation(RuntimeMethodHandle.EnsureNonNullMethodInfo(method), format, JitHelpers.GetStringHandleOnStack(ref result)); return(result); }
// Token: 0x0600462F RID: 17967 RVA: 0x000FF524 File Offset: 0x000FD724 internal override string FormatNameAndSig(bool serialization) { StringBuilder stringBuilder = new StringBuilder(this.Name); TypeNameFormatFlags format = serialization ? TypeNameFormatFlags.FormatSerialization : TypeNameFormatFlags.FormatBasic; if (this.IsGenericMethod) { stringBuilder.Append(RuntimeMethodHandle.ConstructInstantiation(this, format)); } stringBuilder.Append("("); stringBuilder.Append(MethodBase.ConstructParameters(this.GetParameterTypes(), this.CallingConvention, serialization)); stringBuilder.Append(")"); return(stringBuilder.ToString()); }
internal static string ConstructInstantiation(RuntimeMethodInfo method, TypeNameFormatFlags format) { var sb = new StringBuilder(); Type[]? gen_params = method.GetGenericArguments(); sb.Append('['); for (int j = 0; j < gen_params.Length; j++) { if (j > 0) { sb.Append(','); } sb.Append(gen_params[j].Name); } sb.Append(']'); return(sb.ToString()); }
public override string ToString() { #if NETCORE StringBuilder sbName = new StringBuilder(Name); sbName.Append("Void "); TypeNameFormatFlags format = TypeNameFormatFlags.FormatBasic; sbName.Append("("); RuntimeParameterInfo.FormatParameters(sbName, GetParametersNoCopy(), CallingConvention, false); sbName.Append(")"); return(sbName.ToString()); #else return("Void " + FormatNameAndSig(false)); #endif }
internal override string FormatNameAndSig(bool serialization) { // Serialization uses ToString to resolve MethodInfo overloads. StringBuilder sbName = new StringBuilder(Name); // serialization == true: use unambiguous (except for assembly name) type names to distinguish between overloads. // serialization == false: use basic format to maintain backward compatibility of MethodInfo.ToString(). TypeNameFormatFlags format = serialization ? TypeNameFormatFlags.FormatSerialization : TypeNameFormatFlags.FormatBasic; if (IsGenericMethod) sbName.Append(RuntimeMethodHandle.ConstructInstantiation(this, format)); sbName.Append("("); sbName.Append(ConstructParameters(GetParameterTypes(), CallingConvention, serialization)); sbName.Append(")"); return sbName.ToString(); }
[System.Security.SecuritySafeCritical] // auto-generated internal string ConstructName(TypeNameFormatFlags formatFlags) { string name = null; ConstructName(GetNativeHandle(), formatFlags, JitHelpers.GetStringHandleOnStack(ref name)); return name; }
private extern static void ConstructName(RuntimeTypeHandle handle, TypeNameFormatFlags formatFlags, StringHandleOnStack retString);
[System.Security.SecuritySafeCritical] // auto-generated internal static string ConstructInstantiation(IRuntimeMethodInfo method, TypeNameFormatFlags format) { string name = null; ConstructInstantiation(EnsureNonNullMethodInfo(method), format, JitHelpers.GetStringHandleOnStack(ref name)); return name; }
private extern static void ConstructInstantiation(IRuntimeMethodInfo method, TypeNameFormatFlags format, StringHandleOnStack retString);
private static extern void ConstructName(RuntimeTypeHandle handle, TypeNameFormatFlags formatFlags, StringHandleOnStack retString);
public override int GetHashCode() => default; // 0x000000018000DD00-0x000000018000DD10 internal static string ConstructInstantiation(RuntimeMethodInfo method, TypeNameFormatFlags format) => default; // 0x000000018043C630-0x000000018043C7A0
private static extern void ConstructInstantiation(IRuntimeMethodInfo method, TypeNameFormatFlags format, StringHandleOnStack retString);
internal static string ConstructInstantiation (RuntimeMethodInfo method, TypeNameFormatFlags format) { var sb = new StringBuilder (); var gen_params = method.GetGenericArguments (); sb.Append ("["); for (int j = 0; j < gen_params.Length; j++) { if (j > 0) sb.Append (","); sb.Append (gen_params [j].Name); } sb.Append ("]"); return sb.ToString (); }